SendEmailRequest constructor
SendEmailRequest({
- required EmailAddress from,
- required List<
EmailAddress> to, - List<
EmailAddress> ? cc, - List<
EmailAddress> ? bcc, - required String subject,
- String? textBody,
- String? htmlBody,
- String? charset = 'UTF-8',
- List<
EmailAttachment> ? attachments, - String? replyTo,
- String? configurationSetName,
Creates an SES email request.
Example:
final request = SendEmailRequest(
from: EmailAddress('noreply@example.com'),
to: [EmailAddress('user@example.com')],
subject: 'Reset Password',
textBody: 'Use the link in your dashboard.',
);
Implementation
SendEmailRequest({
required this.from,
required this.to,
this.cc,
this.bcc,
required this.subject,
this.textBody,
this.htmlBody,
this.charset = 'UTF-8',
this.attachments,
this.replyTo,
this.configurationSetName,
});