【文件属性】:
文件名称:mailersandbox:用于发送电子邮件的模块使用nodemailer
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-15 00:09:20
JavaScript
沙箱,用于通过nodejs和nodemailer发送电子邮件
发送信件:
安装依赖项(nodemailer) npm i
在下面配置config.json示例:
{
" account " : {
" auth " : {
" user " : " username@host " ,
" pass " : " YOUR PASSWORD HERE "
}
},
" transporterOptions " : {
" host " : " SMTP HOST HERE " ,
" port " : 465 ,
" secure " : true
}
}
运行npm start脚本
【文件预览】:
mailersandbox-master
----sender.js(2KB)
----README.md(531B)
----.gitignore(63B)
----index.js(697B)
----package.json(278B)