Base solution for your next web application
Open Closed

SMTP support for Modern Authentication #12270


User avatar
0
TimMackey created

Microsoft announcement June 10, 2024 "Modern Authentication Methods now needed to continue syncing Outlook Email in non-Microsoft email apps" here: https://support.microsoft.com/en-us/office/modern-authentication-methods-now-needed-to-continue-syncing-outlook-email-in-non-microsoft-email-apps-c5d65390-9676-4763-b41f-d7986499a90d

I am running ANZ version 8.3.1 (Abp v 5.3.0)

Will I be able to send email using my current version after switching from Office365 to Microsoft Exhange server (with correct settings, of course)?


4 Answer(s)
  • User Avatar
    0
    m.aliozkaya created
    Support Team

    Hi @TimMackey,

    This may not be possible because the version of ANZ you are using is slightly outdated (Latest is 14.0 & .NET 9). If Microsoft continues to support Microsoft Exhange server in .NET Core 3.1, you should be able to use it without any issues.

  • User Avatar
    0
    TimMackey created

    Has ANZ updated code supporting email? Can you direct me to the source code for sending emails I can inspect? (IEmailSender)

  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi @TimMackey

    Building Mailkit Smtp takes place in this class: YourProjectNameMailKitSmtpBuilder.cs. After the necessary configurations are made here, mail is sent with MailKitEmailSender included in the Abp package. You can review the source code here.

  • User Avatar
    0
    TimMackey created

    This issue has been resolved by switching mail relay from Office 365 to Azure Email Communication Service.