I would like to send an email from my server (kimsufi), to confirm registration.
So, i use nodemailer https://github.com/andris9/Nodemailer
I have this error:
Error occured
Sendmail exited with 127
What's mean ?
Thanks !
If you are using this example https://github.com/andris9/Nodemailer/blob/master/examples/example_sendmail.js
Then replace this code
var transport = nodemailer.createTransport("Sendmail", "/usr/sbin/sendmail");
With
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"
} });
Make sure your sendmail path is correct. To check, open a terminal and issue:
which sendmail