An implementation of email sends, it depends on the implementation of the mail template provider.
Smtp
Amazon Ses
Fake
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 2 days ago