using https://weblogs.asp.net/sreejukg/send-email-using-office-365-account-and-c website, i tried to send email using C#, office 365 from my development laptop but,
i have received exception as "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 [MRXP264CA0011.FRAP264.PROD.OUTLOOK.COM]"
actually i do have account in office365, may i know the reason and how to resolve this error?
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
Usually this error is due to incorrect account and password, so please check your account and password.
Best regards,
Sam
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
297 Points
1356 Posts
send email using O365 from development computer
Mar 31, 2020 02:56 PM|winseealn@hotmail.com|LINK
hello all,
using https://weblogs.asp.net/sreejukg/send-email-using-office-365-account-and-c website, i tried to send email using C#, office 365 from my development laptop but, i have received exception as "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 [MRXP264CA0011.FRAP264.PROD.OUTLOOK.COM]"
actually i do have account in office365, may i know the reason and how to resolve this error?
below is my sample code
Contributor
3370 Points
1409 Posts
Re: send email using O365 from development computer
Apr 01, 2020 06:06 AM|samwu|LINK
Hi winseealn,
I tested your code, it works fine in my site.
Usually this error is due to incorrect account and password, so please check your account and password.
Best regards,
Sam