Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package ses |
||
2 | |||
3 | import ( |
||
4 | "context" |
||
5 | ) |
||
6 | |||
7 | // XCreateTemplate creates an email template. |
||
8 | func (svc *SES) XCreateTemplate(ctx context.Context, templateName, subject, htmlBody, textBody string) error { |
||
9 | _, err := svc.CreateTemplate(ctx, CreateTemplateRequest{ |
||
10 | Template: Template{ |
||
11 | TemplateName: templateName, |
||
12 | SubjectPart: subject, |
||
13 | HTMLPart: htmlBody, |
||
14 | TextPart: textBody, |
||
15 | }, |
||
16 | }) |
||
17 | return err |
||
18 | } |
||
19 |