Documentation
¶
Overview ¶
Package sendmail is intended for direct sending of emails.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressListToSlice ¶
AddressListToSlice convert mail.Address list to slice of strings
func GetDomainFromAddress ¶ added in v0.2.0
GetDomainFromAddress extract domain from email address
Types ¶
type Envelope ¶
Envelope of message
func NewEnvelope ¶
NewEnvelope return new message envelope
func (*Envelope) GenerateMessage ¶
GenerateMessage create body from mail.Message
func (*Envelope) Send ¶
Send message. It returns channel for results of send. After the end of sending channel are closed.
func (*Envelope) SendLikeMTA ¶
SendLikeMTA message delivery directly, like Mail Transfer Agent.
func (*Envelope) SendSmarthost ¶
SendSmarthost message delivery through an external mail server.
type Level ¶
type Level uint32
Level type of result
const ( // FatalLevel level. FatalLevel Level = iota // ErrorLevel level. Logs. Used for errors that should definitely be noted. ErrorLevel // WarnLevel level. Non-critical entries that deserve eyes. WarnLevel // InfoLevel level. General operational entries about what's going on inside the application. InfoLevel )
Click to show internal directories.
Click to hide internal directories.