createCustomVerificationEmailTemplate method
Creates a new custom verification email template.
For more information about custom verification email templates, see Using Custom Verification Email Templates in the Amazon SES Developer Guide.
You can execute this operation no more than once per second.
May throw CustomVerificationEmailTemplateAlreadyExistsException. May throw FromEmailAddressNotVerifiedException. May throw CustomVerificationEmailInvalidContentException. May throw LimitExceededException.
Parameter failureRedirectionURL
:
The URL that the recipient of the verification email is sent to if his or
her address is not successfully verified.
Parameter fromEmailAddress
:
The email address that the custom verification email is sent from.
Parameter successRedirectionURL
:
The URL that the recipient of the verification email is sent to if his or
her address is successfully verified.
Parameter templateContent
:
The content of the custom verification email. The total size of the email
must be less than 10 MB. The message body may contain HTML, with some
limitations. For more information, see Custom
Verification Email Frequently Asked Questions in the Amazon SES
Developer Guide.
Parameter templateName
:
The name of the custom verification email template.
Parameter templateSubject
:
The subject line of the custom verification email.
Implementation
Future<void> createCustomVerificationEmailTemplate({
required String failureRedirectionURL,
required String fromEmailAddress,
required String successRedirectionURL,
required String templateContent,
required String templateName,
required String templateSubject,
}) async {
ArgumentError.checkNotNull(failureRedirectionURL, 'failureRedirectionURL');
ArgumentError.checkNotNull(fromEmailAddress, 'fromEmailAddress');
ArgumentError.checkNotNull(successRedirectionURL, 'successRedirectionURL');
ArgumentError.checkNotNull(templateContent, 'templateContent');
ArgumentError.checkNotNull(templateName, 'templateName');
ArgumentError.checkNotNull(templateSubject, 'templateSubject');
final $request = <String, dynamic>{};
$request['FailureRedirectionURL'] = failureRedirectionURL;
$request['FromEmailAddress'] = fromEmailAddress;
$request['SuccessRedirectionURL'] = successRedirectionURL;
$request['TemplateContent'] = templateContent;
$request['TemplateName'] = templateName;
$request['TemplateSubject'] = templateSubject;
await _protocol.send(
$request,
action: 'CreateCustomVerificationEmailTemplate',
version: '2010-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['CreateCustomVerificationEmailTemplateRequest'],
shapes: shapes,
);
}