功能概述 | Describe the feature
微软已弃用 Exchange Online 中的基本身份验证 https://learn.microsoft.com/zh-cn/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online
现在使用的代码无法使用 Oauth2 来连接 Outlook
|
const { |
|
SMTP_USER, |
|
SMTP_PASS, |
|
SMTP_HOST, |
|
SMTP_PORT, |
|
SMTP_SECURE, |
|
SMTP_SERVICE, |
|
} = process.env; |
|
if (SMTP_HOST || SMTP_SERVICE) { |
|
const config = { |
|
auth: { user: SMTP_USER, pass: SMTP_PASS }, |
|
}; |
|
if (SMTP_SERVICE) { |
|
config.service = SMTP_SERVICE; |
|
} else { |
|
config.host = SMTP_HOST; |
|
config.port = parseInt(SMTP_PORT); |
|
config.secure = SMTP_SECURE !== 'false'; |
|
} |
|
this.transporter = nodemailer.createTransport(config); |
|
} |
这个 issue 中讲述了如何使用 Oatuh2 连接 Outlook 365
Feature Overview | Describe the feature
Microsoft has deprecated Basic Authentication in Exchange Online https://learn.microsoft.com/zh-cn/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online
The code I am using now cannot connect to Outlook using Oauth2
|
const { |
|
SMTP_USER, |
|
SMTP_PASS, |
|
SMTP_HOST, |
|
SMTP_PORT, |
|
SMTP_SECURE, |
|
SMTP_SERVICE, |
|
} = process.env; |
|
if (SMTP_HOST || SMTP_SERVICE) { |
|
const config = { |
|
auth: { user: SMTP_USER, pass: SMTP_PASS }, |
|
}; |
|
if (SMTP_SERVICE) { |
|
config.service = SMTP_SERVICE; |
|
} else { |
|
config.host = SMTP_HOST; |
|
config.port = parseInt(SMTP_PORT); |
|
config.secure = SMTP_SECURE !== 'false'; |
|
} |
|
this.transporter = nodemailer.createTransport(config); |
|
} |
This issue describes how to use Oatuh2 to connect to Outlook 365
功能概述 | Describe the feature
微软已弃用 Exchange Online 中的基本身份验证 https://learn.microsoft.com/zh-cn/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online
现在使用的代码无法使用 Oauth2 来连接 Outlook
waline/packages/server/src/service/notify.js
Lines 8 to 28 in 84e1543
这个 issue 中讲述了如何使用 Oatuh2 连接 Outlook 365
Feature Overview | Describe the feature
Microsoft has deprecated Basic Authentication in Exchange Online https://learn.microsoft.com/zh-cn/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online
The code I am using now cannot connect to Outlook using Oauth2
waline/packages/server/src/service/notify.js
Lines 8 to 28 in 84e1543
This issue describes how to use Oatuh2 to connect to Outlook 365