Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Send = send
Functions ¶
Types ¶
type Message ¶
type Message struct { Info string // Message information for log purpose. FromAddress string FromDisplayName string To string // Use only one recipient to prevent leaking of addresses ReplyTo string Subject string Date time.Time Body string Headers map[string][]string }
Message mail body and log info
func NewMessage ¶
NewMessage creates new mail message object with default From header.
func NewMessageFrom ¶
NewMessageFrom creates new mail message object with custom From header.
Click to show internal directories.
Click to hide internal directories.