Documentation ¶
Index ¶
- func AssertEmail(email string) error
- func Dispose()
- func GetMailboxInfoSlice() ([]*imap.MailboxInfo, error)
- func InitializeImap(config *ImapConfig) error
- func InitializeSmtp(config *SmtpConfig, count int) error
- func NewMail(from string, to []string, subject string, text, html []byte, cc, bcc []string) *email.Email
- func SendMail(mail *email.Email) error
- type ImapConfig
- type SmtpConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEmail ¶ added in v2.0.17
func GetMailboxInfoSlice ¶
func GetMailboxInfoSlice() ([]*imap.MailboxInfo, error)
func InitializeImap ¶
func InitializeImap(config *ImapConfig) error
func InitializeSmtp ¶
func InitializeSmtp(config *SmtpConfig, count int) error
InitializeSmtp
e.g. 初始化传参count为2,同时发10条邮件,并不会丢失邮件,10条邮件都会被正常发出去.
Types ¶
type ImapConfig ¶
Click to show internal directories.
Click to hide internal directories.