An implementation of email sends, it depends on the implementation of the mail template provider.
Available:
- Smtp 
- Amazon Ses 
- Fake 
Methods:
SendMail: Sends an email using the chosen implementation.
await this.mailProvider.sendMail({
  subject: 'Email subject',
  from: { email: 'sender@mail.com', name: 'Sender' },
  to: { email: 'addressee@mail.com', name: 'Addressee' },
  templateData: {
    file: resolve('..', 'file.hbs'),
    variables: { name: 'your name' },
  },
});Last updated
Was this helpful?