Regex to replace blank lines from a file

it works in visual studio, sublime and other ides too.
Search for : (\n[^\w]\n)+
Replace with: \n


Twilo SMS Application

Outsourcing Nepal successfully tested Twilo SMS Application. We can now send SMS to any mobile anywhere using Twilo SMS gateway.

Twilo SMS gateway provides easy integration of SMS services in our website. Its far easy but that sample code fails to be object oriented. So we have managed the sample code and created a Twilo SMS Singleton class which is easy to use and fully object oriented.

Outsourcing Nepal has been writing php classes for making tasks easy and simplified for performing any job. Those class are portable and can be used in any projects you like. Outsourcing nepal doesn’t limit its use and extension.

You can test our SMS System from http://projects.outsourcingnepal.com/twilo.

In order to perform system for genuine purpose we have implemented manual number verification. So that only genuine users can use the system to send the sms to verified number. If you want to send sms to your number then please write email request with subject “twilo sms application” to Outsourcing Nepal at info@outsourcingnepal.com

We are in further development of the system and we will write the progress and release the updates in future.


cPanel reseller tutorials: configuring your mail client

If you name 5 things you can barely live or work without, email will, without doubt, rank very high among them. And getting your email to work can be a difficult task – no one likes to deal with all of these settings and functions, having no idea what has to be actually done.

This is why, today, Chris from our cPanel support team has prepared a detailed guide on how to set up your email client with your cPanel hosting account and get your mail working in a matter of minutes.


1. In Microsoft Outlook, go to the E-mail Accounts menu, then select Tools.
2. The E-mail Accounts wizard window will pop up, follow the instructions on it and select Add a new e-mail account, then click Next
3. For your server type, select POP3 or IMAP, and then click Next.
4. On the Internet E-mail Settings (POP3/IMAP) window, enter your information as follows:

Your Name;
Your first and last name;
E-mail Address;
Your email address;
User Name;
Your email address, again;
Your email account password.;
Incoming mail server (POP3/IMAP):
POP – mail.yourdomain.com or IMAP – mail.yourdomain.com
1. Outgoing mail server (SMTP) – mail.yourdomain.com On the Internet E-mail Settings window, go to the Outgoing Server tab.
2. Select My outgoing server (SMTP) requires authentication.
3. Select Use same settings as my incoming mail server.
4. Go to the Advanced tab, and then change the Outgoing server (SMTP) port to 26 for non SSL connection or 465 for SSL connection.
5. Click Ok.
6. Click Next. Verify that everything is set up correctly.
7. Click Finish.


1. Start Mozilla Thunderbird, go to the Tools menu and select Account Settings.
2. Select Email account, and click Next.
3. Enter your name and e-mail address.
4. Select POP3 or IMAP as the type of incoming server you are using. Your incoming server is mail.yourdomain.com for both POP/IMAP. Click Next.
5. Enter your e-mail address for the Incoming User Name, and emailuser+domain.com or emailuser*yourdomain.com (should be replaced with the actual user assigned to the actual domain name) for the Outgoing User Name. Click Next.
6. Enter a name for your email account and click Next.
7. Carefully verify your account information and click Finish.
8. In the Account Settings window, select Outgoing Server (SMTP)listed at the bottom of the Settings Frame, below all created email accounts.
9. Click the “Edit” button. At the SMTP Server screen, complete the fields so that they appear as described below:
Server Name: mail.yourdomain.com
Port: 26
Use name and password: check the box (this refers as “My Outgoing Server requires Authentication” in Outlook)
Username: username+yourdomain.com or username*yourdomain.com)
Use secure connection: leave as default
10. Click Ok.
11. Go back to the Server Settings area for the particular email account you just created.
12. Click on the Outgoing SMTP Server drop-down menu and select the Serer you have just added in steps 8,9,10.
13. Click Ok.
14. Your email account is now set up.

MailAPP – Mac

1. Start the Mail.app Program
Locate the Mail program either from your dock menu or from the Applications folder in the Finder. When you start Mail it will open a Welcome configuration screen if the program is not yet configured. You can enter the following information into this Welcome screen:
Full Name: (Your First and Last Name);
Email Address: (your email address);
Incoming Mail Server: mail.domain.com for both IMAP or POP;
Account Type: POP or IMAP ;
User Name: (the username you have chosen for the mail account);
Password: (the password you have chosen for the mail account);
Outgoing Mail Server: mail.yourdomain.com ;
Select the OK button to continue to open the Mail program.
2. Open Mail Preferences
Before attempting to “Get Mail”, you need to make additional changes to the account. You can access the Preferences window by choosing Preferences from under the Mail menu.
3. Setting Account Preferences
At the top of the Preferences window, choose the Accounts icon or tab. This will display your accounts that are configured for use with the Mail application. You should now be able to see the account that you originally configured in step 1, and selecting this account should display the same information that you entered back in step 1.
4. Within the Accounts Preferences window, choose the Advanced tab toward the top, along the right side of the screen. Do not check the Use SSL option, check the box “Use authentication when sending mail” and confirm that the Authentication is set to “MD5 Challenge-Response”. Set the outgoing SMTP Port to 26.
5. The setup is complete. Proceed to checking your newly created mailbox.


1. 1. In Eudora, select “Create a brand new email account” and click the Next button.
2. Give this email account an identifying label. Sort the personalities by job hierarchy, job positions, etc, personal preferences, etc.
3. In the Personal Information field, type your name the way you would like people to see it when they get email from you. Click Next.
4. In the Email Address field, put in the email address that you are now creating a mailbox for. Click Next.
5. Type in your login name in the next field. This is the mailbox name, e.g. username@mydomain.com. Click Next.
6. Select the Incoming Server connection type – POP or IMAP. Add the mail.mydomain.com Incoming Server in both cases. Click Next.
7. To send mail, you need to have the Outgoing mail server identified correctly. At the next step add mail.mydomain.com as an Outgoing Mail Serer and check the box “Authentication allowed”.
8. Click Next.
9. Click Finish.


1. Click the Start button.
2. Point to All Programs.
3. Click Outlook Express.
4. In Microsoft Outlook Express, from the Tools menu, select Accounts.
5. Go to the Mail tab and from the Add menu, select Mail.
6. In the Display Name field, enter you full name and click Next.
7. In the E-mail address field, enter your email address and click Next.
8. On the E-mail Server Names page, complete your information as follows:
My incoming mail server is a: POP3 or IMAP.
Incoming mail (POP3, IMAP) server
POP – mail.mydomain.com or IMAP – mail.mydomain.com.
Outgoing mail (SMTP) server – mail.mydomain.com
9. In the Account Name and Password fields, enter your email address and password, and then click Next.
10. On the setup confirmation page, click Finish.
11. On the Mail tab, select the account you just created, and then click Properties.
12. Go to the Servers tab
13. Select My server requires authentication, and then click Apply.
14. Your mail account set up is complete.