create_email_template

SESV2.Client.create_email_template(**kwargs)

Creates an email template. Email templates enable you to send personalized email to one or more destinations in a single API operation. For more information, see the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

See also: AWS API Documentation

Request Syntax

response = client.create_email_template(
    TemplateName='string',
    TemplateContent={
        'Subject': 'string',
        'Text': 'string',
        'Html': 'string'
    }
)
Parameters
  • TemplateName (string) --

    [REQUIRED]

    The name of the template.

  • TemplateContent (dict) --

    [REQUIRED]

    The content of the email template, composed of a subject line, an HTML part, and a text-only part.

    • Subject (string) --

      The subject line of the email.

    • Text (string) --

      The email body that will be visible to recipients whose email clients do not display HTML.

    • Html (string) --

      The HTML body of the email.

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

    If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Exceptions

  • SESV2.Client.exceptions.AlreadyExistsException
  • SESV2.Client.exceptions.TooManyRequestsException
  • SESV2.Client.exceptions.BadRequestException
  • SESV2.Client.exceptions.LimitExceededException