Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion email.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,11 @@ const (
TextPlain contentType = iota
// TextHTML sets body type to text/html in message body
TextHTML
// TextCalendar sets body type to text/calendar in message body
TextCalendar
)

var contentTypes = [...]string{"text/plain", "text/html"}
var contentTypes = [...]string{"text/plain", "text/html", "text/calendar"}

func (contentType contentType) string() string {
return contentTypes[contentType]
Expand Down