The SMTP server requires a secure connection RRS feed

  • Question

  • User-1634604574 posted

    i have this error when i send email by hotmail it mean my sender email is hotmail

    The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM [ZR0P278CA0007.CHEP278.PROD.OUTLOOK.COM]

    Thursday, July 30, 2020 7:22 AM

All replies

  • User1118469561 posted


    It simply mean to setup SMTP mail server setting is not in place.

    A. How to configure MS Outlook for Hotmail Emails

    Hotmail: IMAP, POP3, and SMTP settings
    1. IMAP. Server: imap-mail.outlook.com. SSL: true-implicit. Port: 993 (default) User: pat@hotmail.com.
    2. POP3. Server: pop-mail.outlook.com. SSL: true-implicit. Port: 995 (default) User: pat@hotmail.com. ...
    3. SMTP. Server: smtp-mail.outlook.com. SSL: true-explicit. Port: 587 (default) User: pat@hotmail.com.

    Hope this will help.

    B. Using C# or any other Application

    Please share more information.

    Thanks and Regards

    Thursday, July 30, 2020 7:41 AM
  • User1686398519 posted

    Hi zhyanadil.it,

    You need to enable the Ssl property and set it to true.Below is the example I gave, you can refer to it.

                    MailMessage mail = new MailMessage();  
                    mail.From = new MailAddress("xxxx@outlook.com");  
                    mail.Subject = "test";  
                    string Body = "test1";  
                    mail.Body = Body;  
                    mail.IsBodyHtml = true;  
                    SmtpClient smtp = new SmtpClient();  
                    smtp.Host = "smtp.outlook.com"; 
                    smtp.Port = 587;  
                    smtp.UseDefaultCredentials = false;  
                    smtp.Credentials = new System.Net.NetworkCredential("xxxx@outlook.com", "xxxxx"); 
                    smtp.EnableSsl = true;  

    Here is the result.

    Best Regards,


    Friday, July 31, 2020 8:23 AM
  • User1686398519 posted

    Hi zhyanadil.it,

    Has the problem you encountered solved? You can mark replies that are helpful to you, so that you can help other people who have similar problems.

    Best Regards,


    Monday, August 3, 2020 9:29 AM