mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-08 23:12:54 +01:00
Added GetGenHeader to the Msg to grant read access to set generic headers (e g. to use in Middlewares)
This commit is contained in:
parent
664aca5e90
commit
cd2ee86846
1 changed files with 5 additions and 0 deletions
5
msg.go
5
msg.go
|
@ -478,6 +478,11 @@ func (m *Msg) GetRecipients() ([]string, error) {
|
|||
return rl, nil
|
||||
}
|
||||
|
||||
// GetGenHeader returns the content of the requested generic header of the Msg
|
||||
func (m *Msg) GetGenHeader(h Header) []string {
|
||||
return m.genHeader[h]
|
||||
}
|
||||
|
||||
// SetBodyString sets the body of the message.
|
||||
func (m *Msg) SetBodyString(ct ContentType, b string, o ...PartOption) {
|
||||
buf := bytes.NewBufferString(b)
|
||||
|
|
Loading…
Reference in a new issue