Skip to content

Commit

Permalink
Add content type text/x-amp-html (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
Smirnoff2019 committed Aug 17, 2023
1 parent b1fb802 commit e85597e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion email.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit e85597e

Please sign in to comment.