Skip to content

Commit

Permalink
add getters to PlainMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
vtopc committed Dec 11, 2024
1 parent 56e10c7 commit d2204c2
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,38 @@ type PlainMessage struct {
template string
}

func (m *PlainMessage) From() string {
return m.from
}

func (m *PlainMessage) CC() []string {
return m.cc
}

func (m *PlainMessage) BCC() []string {
return m.bcc
}

func (m *PlainMessage) Subject() string {
return m.subject
}

func (m *PlainMessage) Text() string {
return m.text
}

func (m *PlainMessage) HTML() string {
return m.html
}

func (m *PlainMessage) AmpHTML() string {
return m.ampHtml
}

func (m *PlainMessage) Template() string {
return m.template
}

// MimeMessage contains fields relevant to pre-packaged MIME messages.
// TODO(v5): embed CommonMessage
type MimeMessage struct {
Expand Down

0 comments on commit d2204c2

Please sign in to comment.