Pre-release for v6
Pre-release
Pre-release
- Rewrited package for AdonisJS 6 and ESM ready. No breaking changes for the API except for ioc and esm stuff. Will be summarized in the documentation.
- Added global mailer settings, to make local dev/testing easier, or to avoid having to set a "from" on allmails:
const mail = await this.app.container.make("mail")
// All mails will be sent to this email. Useful for debugging
mail.alwaysTo("mymail@mail.com");
// All mails will be from this mail
mail.alwaysFrom("mycompany@mail.com");
Can also be specified in the defineConfig
- added 3 methods to simplify tests on Mail.fake()
const fake = mailer.fake()
fake.assertSent(messageOrCallback)
fake.assertNotSent(messageOrCallback)
fake.assertNoneSent()
- Migrate to aws-sdk v3 for SES driver. This doesn't create any breaking changes