From e85597ed1f7e85791e89fc311fb97f50223c5fd5 Mon Sep 17 00:00:00 2001 From: Maksym Smirnov <47488616+Smirnoff2019@users.noreply.github.com> Date: Thu, 17 Aug 2023 03:50:52 +0300 Subject: [PATCH] Add content type text/x-amp-html (#89) --- email.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/email.go b/email.go index 5da20dd..33acf33 100644 --- a/email.go +++ b/email.go @@ -127,9 +127,11 @@ const ( TextHTML // TextCalendar sets body type to text/calendar in message body TextCalendar + // TextAMP sets body type to text/x-amp-html in message body + TextAMP ) -var contentTypes = [...]string{"text/plain", "text/html", "text/calendar"} +var contentTypes = [...]string{"text/plain", "text/html", "text/calendar", "text/x-amp-html"} func (contentType ContentType) string() string { return contentTypes[contentType]