I am using a custom email on a custom domain and trying to send emails to clients. On the node side the response shows the email is sent but can't see it on the reciever's input box.
var transporter = nodemailer.createTransport({
host: 'mail.example.com',
port: '587',
secure: true ,
auth: {
user: "noreply@example.com",
pass: 'password' },
tls: rejectUnauthorized:false ,
}
});
transporter.sendMail(mailOptions,function(error,info){
if (error) return 400;
else {
console.log(info) ;
return 200 ;
}
});