Office 365 SMTP not working anymore with ASP.NET VB Page

Jeff Thomas 1 Reputation point
2022-11-29T18:41:08.577+00:00

I've attempted several changes that I received from Microsoft and still not successful. Everything worked until around February 2022. I understand that Microsoft made some changes in regards to SMTP authentication. I have the SMTP credentials setup in webconfig as seen below and the code is in VB. I appreciate any help I can receive!

265290-screenshot-2022-11-29-at-113603-am.png

265391-screenshot-2022-11-29-at-113805-am.png

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

Developer technologies | VB
Developer technologies | ASP.NET Core | Other
0 comments No comments

2 answers

Sort by: Most helpful
  1. Jeff Thomas 1 Reputation point
    2022-12-02T04:19:34.84+00:00

    Thank you for your response! The thread you referenced had the fix! I need to add the "ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12" and it worked! See screen shot below.

    I can't thank you enough! 266407-screenshot-2022-12-01-at-91606-pm.png

    Was this answer helpful?

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    5 deleted comments

    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.