:doc:`SES <../../ses>` / Client / create_template

***************
create_template
***************



.. py:method:: SES.Client.create_template(**kwargs)

  

  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 <https://docs.aws.amazon.com/ses/latest/dg/send-personalized-email-api.html>`__.

   

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

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/CreateTemplate>`_  


  **Request Syntax**
  ::

    response = client.create_template(
        Template={
            'TemplateName': 'string',
            'SubjectPart': 'string',
            'TextPart': 'string',
            'HtmlPart': 'string'
        }
    )
    
  :type Template: dict
  :param Template: **[REQUIRED]** 

    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.

      

    
  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`SES.Client.exceptions.AlreadyExistsException`

  
  *   :py:class:`SES.Client.exceptions.InvalidTemplateException`

  
  *   :py:class:`SES.Client.exceptions.LimitExceededException`

  