EmailService
Description
This service is designed to send emails using AWS SES (Simple Email Service).
Methods
async sendEmail(msg: EmailNotification)
Composes an email message and immediately queues it for sending.
For example:
const email = "cat@example.com";
const subject = "Welcome to MBC CQRS serverless framework!";
const body = "<p>Enjoy</p>";
await this.mailService.sendEmail({
toAddrs: [email],
subject,
body,
});