i am facing problem during sending nodejs mail using nodemailer module there is no error appear only showing mail sent with status 250 but mail is not received plz help me how to solve it my node js code is following
nodemailer.createTransport({ sendmail: true })
var transporter = nodemailer.createTransport({
host: 'taylor.mxrouting.net',
port: 587,
// secure: true,//true for 465 and false for 587
auth: {
user: 'xxxxx,
pass: 'xxxxx'
},
});
transporter.verify(function(error, success) {
if (error) {
console.log(error);
} else {
console.log('Server is ready to take our messages');
}
});
var mailOptions = {
from: 'SDrive Community',
to: 'sagarvivian@gmail.com',
subject: 'Email Verification From SDrive',
html:'<h1 style="color:#9a3fda">Welcome
to Email Varification Phase!</h1><h3>
Varification Code:<span style="color:#9a3fda">'
+Unique_String+'</span></h3>'
};
transporter.sendMail(mailOptions, function(error, info){
if (error) {
console.log(error);
} else {
console.log('Email sent on: '+found.Email +' ' + info.response);
}
});
and output of above code in below
Email sent on: sagarvivian@gmail.com 250 OK id=1ksMAz-0005ou-Jn
Server is ready to take our messages