📜  在没有密码的节点 js 中发送邮件 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:26.990000             🧑  作者: Mango

代码示例1
const sendmail = require('sendmail')();

sendmail({
  from: 'test@finra.org',
  to: 'YOUR@gmail.com',
  subject: 'Hello World',
  html: 'Mail of test sendmail '
}, function (err, reply) {
  console.log(err && err.stack)
  console.dir(reply)
})