javascript - 我可以使用 javascript 发送电子邮件吗

标签 javascript html email smtp smtpclient

是否可以仅使用 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/

相关文章:

javascript - 确定启动全屏 iframe 小部件?比。嵌入式?

spring - Grails电子邮件插件发送电子邮件失败

javascript - 如何将CSS代码放入javascript

javascript - 除非我单击页面,否则 Firefox 不会调用 `beforeunload` 事件

Javascript 函数抛出错误

javascript - 我怎样才能给用户一个 javascript 小部件来安全地从我的站点中提取内容

python - 无法使用 python 解析 sendgrid 原始电子邮件

PHP 邮件发送给多个收件人

javascript - 更改 VuetifyJS DataTable 单元格的默认宽度

javascript - 在 React 中映射数组 onClick 按钮