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)?

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

6 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.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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)

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    TimMackey created

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

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    asbbh created

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

    Hi, Can you share more details or code, please?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    TimMackey created

    google search: "azure email communication services"

    https://learn.microsoft.com/en-us/azure/communication-services/concepts/email/email-overview

    https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/email/create-email-communication-resource?pivots=platform-azp

    https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/email/send-email?tabs=windows%2Cconnection-string%2Csend-email-and-get-status-async%2Csync-client&pivots=platform-azportal

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)