The default "from" email address.
The AWS region to use for sending emails.
None
Creates a new SMTP transporter for sending emails using NodeMailer.
The SMTP server host.
The port number to connect to the SMTP server.
The username for authentication with the SMTP server.
The password for authentication with the SMTP server.
Sends a raw email with the specified parameters.
The recipient(s) of the email.
The HTML content of the email.
The subject of the email.
Optional
optionalCC: string | string[]The optional CC recipient(s) of the email.
Optional
optionalFrom: stringThe optional sender of the email. If not provided, the default sender will be used.
Optional
optionalReplyTo: stringThe optional reply-to address for the email.
Optional
optionalAttachments: any[]The optional attachments to include
Optional
optionalTransport: NodeMailerTransportOptionsSends a templated email to the specified recipients.
The email address(es) of the recipient(s).
The template(s) to use for the email.
The data to be used in the email template.
Optional
optionalCC: string | string[]The email address(es) to CC.
Optional
optionalFrom: stringThe email address to send the email from.
Optional
optionalReplyTo: stringThe email address to set as the reply-to address.
Optional
optionalAttachments: any[]An array
Optional
optionalTransport: NodeMailerTransportOptionsStatic
renderRenders the given template with the provided data using the Email class.
The name or path of the template to render.
The data object to pass to the template.
Constructs a new instance of the EmailSender class.