Closed bestmbed closed 1 year ago
I tried to send email to multiple recipients by using Mail.sendLater But i got an error like below picture.
Mail.sendLater
Could you please help me to solve this issue.
Thank you.
const mails :string = 'best@example.com, test2@example.com' await Mail.sendLater((message) => { message .from('wareboxtech.service@gmail.com') .to(mails) .subject(`${data.type}`) .htmlView('emails/template', { alarm: data.type, site_name: data.site_name, device_no: data.device_id, timestamp: moment().format('DD MM YYYY hh:mm:ss'), }) })
https://docs.adonisjs.com/guides/mailer#to
Can't send email to multiple recipients.
I tried to send email to multiple recipients by using
Mail.sendLater
But i got an error like below picture.Could you please help me to solve this issue.
Thank you.
Package version
Node.js and npm version
Sample Code (to reproduce the issue)