Last post Aug 03, 2020 09:29 AM by YihuiSun
Jul 30, 2020 07:22 AMfirstname.lastname@example.org|LINK
i have this error when i send email by hotmail it mean my sender email is hotmail
Jul 30, 2020 07:41 AM|Nadeem M Taj|LINK
It simply mean to setup SMTP mail server setting is not in place.
A. How to configure MS Outlook for Hotmail Emails
Hope this will help.
B. Using C# or any other Application
Please share more information.
Thanks and Regards
Jul 31, 2020 08:23 AM|YihuiSun|LINK
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("email@example.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("firstname.lastname@example.org", "xxxxx");
smtp.EnableSsl = true;
Here is the result.
Aug 03, 2020 09:29 AM|YihuiSun|LINK
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.