:doc:`SESV2 <../../sesv2>` / Client / test_render_email_template

**************************
test_render_email_template
**************************



.. py:method:: SESV2.Client.test_render_email_template(**kwargs)

  

  Creates a preview of the MIME content of an email when provided with a template and a set of replacement data.

   

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

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/TestRenderEmailTemplate>`_  


  **Request Syntax**
  ::

    response = client.test_render_email_template(
        TemplateName='string',
        TemplateData='string'
    )
    
  :type TemplateName: string
  :param TemplateName: **[REQUIRED]** 

    The name of the template.

    

  
  :type TemplateData: string
  :param TemplateData: **[REQUIRED]** 

    A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.

    

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

    
    ::

      {
          'RenderedTemplate': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The following element is returned by the service.

      
      

      - **RenderedTemplate** *(string) --* 

        The complete MIME message rendered by applying the data in the ``TemplateData`` parameter to the template specified in the TemplateName parameter.

        
  
  **Exceptions**
  
  *   :py:class:`SESV2.Client.exceptions.NotFoundException`

  
  *   :py:class:`SESV2.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`SESV2.Client.exceptions.BadRequestException`

  