简体   繁体   English

在启用 Azure MFA 的 MERN 应用程序中发送 Email

[英]Send Email in MERN app with Azure MFA enabled

I have Node/React app and using nodemailer for sending the emails using SMTP protocol which works fine but in client company's Azure environment, they have disabled the use of IMAP, POP3, SMTP authentication as these are legacy protocols and pose a security risk.我有 Node/React 应用程序并使用 nodemailer 使用 SMTP 协议发送电子邮件,该协议工作正常,但在客户公司的 Azure 环境中,他们已禁用 IMAP、POP3、SMTP 身份验证,因为这些是遗留协议并构成安全风险。 Instead, they have in place Azure MFA modern authentication.相反,他们有 Azure MFA 现代身份验证。 Can you please guide us how to use this Azure MFA and then send the email in node after Azure authentication?能否请您指导我们如何使用此 Azure MFA,然后在 Azure 身份验证后在节点中发送 email?

As SMTP auth is disabled in your client's environment there can be two possibilities to send mail from your application based on your requirement:由于 SMTP 身份验证在您的客户端环境中被禁用,因此可以根据您的要求从您的应用程序发送邮件的两种可能性:

  1. You can send mail directly from your application to Microsoft 365 or Office 365 using direct send (only used for internal organization)您可以使用直接发送将邮件直接从您的应用程序发送到 Microsoft 365 或 Office 365(仅用于内部组织)

  2. You can configure a connector to send mail using Microsoft 365 or Office 365 SMTP relay (can be used for external organization)您可以配置一个连接器以使用 Microsoft 365 或 Office 365 SMTP 中继发送邮件(可用于外部组织)

Please refer the below document for more details: https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365详情请参考以下文档: https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application -to-send-email-using-microsoft-365-or-office-365

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM