用 Angular 打字稿发送电子邮件
Send Email in Angular Typescript
我正在尝试通过单击按钮发送带有 html 正文的电子邮件 我正在使用 Angular 10.0.8
有没有什么方法可以在不使用 nodejs
的情况下使用打字稿中的 SMTP 中继发送电子邮件
您可以使用 email.js 或 smtp.js
你可以smtp.js
Email.send({
SecureToken : "C973D7AD-F097-4B95-91F4-40ABC5567812",
To : 'them@website.com',
From : "you@isp.com",
Subject : "This is the subject",
Body : "And this is the body"
}).then(
message => alert(message)
);
安全密钥是在网站上生成的,与您的凭据不同
但目前仅安全支持 Elasticmail
smtpjs.com for documentation
并且email.js是付费服务
我正在尝试通过单击按钮发送带有 html 正文的电子邮件 我正在使用 Angular 10.0.8 有没有什么方法可以在不使用 nodejs
的情况下使用打字稿中的 SMTP 中继发送电子邮件您可以使用 email.js 或 smtp.js
你可以smtp.js
Email.send({
SecureToken : "C973D7AD-F097-4B95-91F4-40ABC5567812",
To : 'them@website.com',
From : "you@isp.com",
Subject : "This is the subject",
Body : "And this is the body"
}).then(
message => alert(message)
);
安全密钥是在网站上生成的,与您的凭据不同
但目前仅安全支持 Elasticmail smtpjs.com for documentation
并且email.js是付费服务