Closed kodelio closed 6 years ago
Hi :)
I'm trying to send emails with my transporter. I have errors like "No recipients defined". What I wrong ? Thank you.
let transporter = nodemailer.createTransport(transporterConfig); const email = new EmailTemplate({ views: { root: typeMail }, message: { from: mailOptions.from, to: mailOptions.to, subject: mailOptions.subject }, transport: transporter, config: { transport: transporter } }); email.send({ locals: { data } }).then(console.log).catch(console.error);
@kokno Did you find out what the problem was, can you share that with us?
Hi, it was a problem with the mailOptions variable and an incorrect binding of parameters.
Hi :)
I'm trying to send emails with my transporter. I have errors like "No recipients defined". What I wrong ? Thank you.