I am using nodemailer with nodejs express.
What I want to know is if my mail is sent successfully to the recipient. My mail service belongs to zoho.com.
const nodemailer = require('nodemailer');
let transporter = await nodemailer.createTransport({
host: "smtp.zoho.com",
port: 465,
secure: true,
auth: {
user: 'info@mymail.gr',
pass: '******',
},
tls: {
rejectUnauthorized: false
}
});
let info = await transporter.sendMail({
from: '"Test mail" <info@mymail.gr>', // sender address
to: "infodasfdfs23432d@mymail.gr", // list of receivers
subject: "Hello ✔", // Subject line
text: "Hello world?", // plain text body
html: "<b>Hello world?</b>", // html body
}, (error, result) => {
if (error) return console.error(error);
});
The mail "infodasfdfs23432d@mymail.gr" it doesn't exist and the error is not triggered. How to check if my mail is delivered or not, with nodemailer?