是否可以仅使用 javascript 发送电子邮件?
最佳答案
编辑:[警告!] 自述文件:
It's a third party library that connects to an external server, take care with the information that you are sending.
另一个关于 JS 的解决方案你可以使用一个名为 smtpjs 的库
在 header 上添加以下库:
<script src="https://smtpjs.com/smtp.js"></script>
使用这个没有安全性:
Email.send("from@you.com",
"to@them.com",
"This is a subject",
"this is the body",
"smtp.yourisp.com",
"username",
"password");
使用这个安全:
Email.send("from@you.com",
"to@them.com",
"This is a subject",
"this is the body",
{token: "63cb3a19-2684-44fa-b76f-debf422d8b00"});
关于javascript - 我可以使用 javascript 发送电子邮件吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4454294/