Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Message ¶
A Message represents an email message that needs to be sent Bigmail will automatically add appropriate envelope headers to make the message valid before sending
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
func NewSender ¶
func NewSender(addr string, incoming <-chan *Message, errors chan<- *Message, useTls bool, interval time.Duration) (*Sender, error)
Creates a new sender, it will connect to the remote server and start the goroutine that does the actual sending operation.
addr specifies the address of the SMTP server that the worker will connects to, as specified in smtp/Dial's document. incoming specifies the channel the sender will obtain jobs from. interval specifies the time sender sleeps between sending each message. 0 means no waiting.
Click to show internal directories.
Click to hide internal directories.