Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMailMsg ¶
BuildMailMsg build *mail.Msg from Message
func TmplConfirmCode ¶
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
Consumer is responsible for reading messages from queues and then send these emails.
type Message ¶
type Message struct { ContentType mail.ContentType `mapstructure:"contentType"` From string `mapstructure:"from"` To []string `mapstructure:"to"` CC []string `mapstructure:"cc"` Bcc []string `mapstructure:"bcc"` Subject string `mapstructure:"subject"` Body string `mapstructure:"body"` }
Message represents an email message
Click to show internal directories.
Click to hide internal directories.