nodemailer nodejs: sendmail exited with 127
nodemailer nodejs: sendmail exited with 127
我想从我的服务器(kimsufi)发送电子邮件以确认注册。
所以,我使用nodemailer https://github.com/andris9/Nodemailer
我有这个错误:
Error occured
Sendmail exited with 127
什么意思?
谢谢!
如果您正在使用此示例https://github.com/andris9/Nodemailer/blob/master/examples/example_sendmail.js
然后替换此代码
var transport = nodemailer.createTransport("Sendmail", "/usr/sbin/sendmail");
跟
var transport = nodemailer.createTransport("SMTP", {
host: "smtp.gmail.com", // hostname
secureConnection: true, // use SSL
port: 465, // port for secure SMTP
auth: {
user: "foo@rcorp.co.in",
pass: "fooP@ssword"
} });
确保您的发送邮件路径正确。要进行检查,请打开终端并发出:
which sendmail
相关文章:
- Fighting with FRP
- issue with FB.Event.subscribe
- geolocation-marker.js conflict with markerclusterer.js
- Angular 2.0 with JavaScript or TypeScript?
- 为什么不推荐使用“with”?是否有更好或其他方法可以“下降”到对象的命名空间
- WebComponentsJS with IE10
- 指令的模板必须只有一个根元素:With restrict E&替换true
- timeago.js with datatable and PHP
- Ajax and Json with Rails
- errors with Javascript try catch
- how to split a string with ','
- Understanding Javascript scope with "var that = this&qu
- Architecture for CPU intensive tasks with NodeJS & Socke
- How to declare a Map containing certain properties with flow
- 设置'这'在React with Inverse Data Flow中
- Unit-testing multiple use cases with Karma & Mocha.js
- Modify Javascript with C#
- 谷歌地图API v3:Initial View is Fine,but Gray Box with No Map if
- Using jQuery with classes from ES6
- nodemailer nodejs: sendmail exited with 127