Server error: ‘530 SMTP authentication is required.’

Sometimes we get error message – 530 SMTP authentication is required when attempting to send an e-mail through MS Outlook. In this article I will discuss how to resolve this error.

Here I used MS Outlook 2010

1. Go to File -> Account Settings

2. Click Email Tab and double click on you email addresss

3. In Change account settings pop up -> Click more settings

4. Check -> My out going server (SMTP) required authentications and click OK as follows

Screenshot 2015-11-02 21.40.12

Now you can send your email and “530 SMTP authentication is required” is solved.

How to remove special character from Unicode string

Here is the sample code to remove special character from Unicode string.
Sample Input: SG@%@sgs th? g#%@^@#$ chào^#^$#!abc35| _ sgs _35 hello world không gsg
Sample Output: SG%sgs th? g#%^#$ chào^#^$#!abc35 sgs 35 hello world không gsg

    class Program
    {
        static void Main(string[] args)
        {
            string inputString = "SG@%@sgs thể g#%@^@#$ chào^#^$#!abc35| _ sgs _35 hello world không gsg";

            string outputString = inputString.Replace("@", "").Replace("|", "").Replace("_", "");

            Console.WriteLine(inputString);
            Console.WriteLine(outputString);
            Console.ReadKey();
        }
    }