Documentation ¶
Index ¶
- func Dialer() (dialer *gomail.Dialer)
- func SendMail(To string, Subject string, Content string, sender gomail.SendCloser, ...) (err error)
- func SendMailWithAttch(To string, Subject string, Content string, Attachments []Attachment, ...) (err error)
- func Sender() (sender gomail.SendCloser, err error)
- type Attachment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendMail ¶
func SendMail(To string, Subject string, Content string, sender gomail.SendCloser, Attachments ...Attachment) (err error)
SendMail sending an email with attchment, it just a little shorter but its calling is not graceful enough 注意区别,sender 在 attachment之前
func SendMailWithAttch ¶
func SendMailWithAttch(To string, Subject string, Content string, Attachments []Attachment, sender gomail.SendCloser) (err error)
SendMailWithAttch sending an email with attchment which tell you can add attch with it
Types ¶
type Attachment ¶
Attachment Define the Attachment
Click to show internal directories.
Click to hide internal directories.