SendEmailRequest constructor

SendEmailRequest({
  1. required EmailAddress from,
  2. required List<EmailAddress> to,
  3. List<EmailAddress>? cc,
  4. List<EmailAddress>? bcc,
  5. required String subject,
  6. String? textBody,
  7. String? htmlBody,
  8. String? charset = 'UTF-8',
  9. List<EmailAttachment>? attachments,
  10. String? replyTo,
  11. 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,
});