SESV2 / Client / get_email_template
get_email_template#
- SESV2.Client.get_email_template(**kwargs)#
- Displays the template object (which includes the subject line, HTML part and text part) for the template you specify. - You can execute this operation no more than once per second. - See also: AWS API Documentation - Request Syntax- response = client.get_email_template( TemplateName='string' ) - Parameters:
- TemplateName (string) – - [REQUIRED] - The name of the template. 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'TemplateName': 'string', 'TemplateContent': { 'Subject': 'string', 'Text': 'string', 'Html': 'string' } } - Response Structure- (dict) – - The following element is returned by the service. - TemplateName (string) – - The name of the template. 
- TemplateContent (dict) – - 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. 
 
 
 
 - Exceptions- SESV2.Client.exceptions.NotFoundException
- SESV2.Client.exceptions.TooManyRequestsException
- SESV2.Client.exceptions.BadRequestException