Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mail ¶
type MailSender ¶
type MailSender interface {
Send(*Mail) error
//SendWithAttachment is a function that sends an email with attachment, the first parameter is the email content,
//the second parameter is the attachment name, and the third parameter is the attachment content. the file name has a extension, the content is a byte array
SendWithAttachment(*Mail, string, []byte) error
}
func NewAliyunSender ¶
func NewAliyunSender(senderAddress, senderPass string) MailSender
Click to show internal directories.
Click to hide internal directories.