我正在嘗試通過單擊按鈕發送帶有 html 正文的電子郵件我正在使用 Angular 10.0.8 是否有任何可能的方法可以在不使用 nodejs 的情況下在 typescript 中使用 SMTP Relay 發送電子郵件
uj5u.com熱心網友回復:
您可以使用email.js或smtp.js 之類的東西
你可以用什么 smtp.js
Email.send({
SecureToken : "C973D7AD-F097-4B95-91F4-40ABC5567812",
To : '[email protected]',
From : "[email protected]",
Subject : "This is the subject",
Body : "And this is the body"
}).then(
message => alert(message)
);
安全密鑰是在網站上生成的,與您的憑據不同
但這目前僅安全地支持 Elasticmail smtpjs.com 以獲取檔案
email.js 是一項付費服務
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/436919.html
