Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSMTPNoSet = errors.New(`SMTP is not set`) ErrSenderNoSet = errors.New(`The sender address is not set`) ErrRecipientNoSet = errors.New(`The recipient address is not set`) ErrSendChannelTimeout = errors.New(`SendMail: The sending channel timed out`) //QueueSize 每批容量 QueueSize = 50 //QueueWait 队列等待时间 QueueWait = time.Second * 30 )
View Source
var Callbacks = []func(*Config, error){}
Functions ¶
func AddCallback ¶
func SMTPClient ¶
func SMTPClient(conf *mail.SMTPConfig) *mail.SMTPClient
Types ¶
Click to show internal directories.
Click to hide internal directories.