Closed ntvsx193 closed 7 years ago
From gitter chat:
Installed the new @adonisjs/mail provider, and for some sort of reason got Cannot find module 'Mail', then added to aliases Adonis/Addons/Mail, and again no luck, when I try to send something it drops Mail.send is not a function
In doc https://github.com/adonisjs/adonis-mail/blob/develop/instructions.md example use Mail.send, but it's not worked. I use this for bypass problem:
Mail.send
const sender = await Mail.connection() await sender.send('welcome', { user: user }, (message) => { message.from('example@dot.com') message.to(user.email, user.name) message.subject('Test, Hello world!') })
Can u verify this on the latest version? It should work
Yep, wait
Well done, it's worked with last changes!
From gitter chat:
In doc https://github.com/adonisjs/adonis-mail/blob/develop/instructions.md example use
Mail.send
, but it's not worked. I use this for bypass problem: