Skip to content

Commit e85597e

Browse files
authored
Add content type text/x-amp-html (#89)
1 parent b1fb802 commit e85597e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

email.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,11 @@ const (
127127
TextHTML
128128
// TextCalendar sets body type to text/calendar in message body
129129
TextCalendar
130+
// TextAMP sets body type to text/x-amp-html in message body
131+
TextAMP
130132
)
131133

132-
var contentTypes = [...]string{"text/plain", "text/html", "text/calendar"}
134+
var contentTypes = [...]string{"text/plain", "text/html", "text/calendar", "text/x-amp-html"}
133135

134136
func (contentType ContentType) string() string {
135137
return contentTypes[contentType]

0 commit comments

Comments
 (0)