SES / Client / create_template



Creates an email template. Email templates enable you to send personalized email to one or more destinations in a single 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_template(
        'TemplateName': 'string',
        'SubjectPart': 'string',
        'TextPart': 'string',
        'HtmlPart': 'string'

Template (dict) –


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

  • TemplateName (string) – [REQUIRED]

    The name of the template. You use this name when you send email using the SendTemplatedEmail or SendBulkTemplatedEmail operations.

  • SubjectPart (string) –

    The subject line of the email.

  • TextPart (string) –

    The email body that is visible to recipients whose email clients do not display HTML content.

  • HtmlPart (string) –

    The HTML body of the email.

Return type:



Response Syntax


Response Structure

  • (dict) –


  • SES.Client.exceptions.AlreadyExistsException

  • SES.Client.exceptions.InvalidTemplateException

  • SES.Client.exceptions.LimitExceededException