Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mail ¶
type Mail struct {
// contains filtered or unexported fields
}
Mail smtp adapter
func (*Mail) Send ¶
Send use smtp send email to := []string{"recipient@example.net"} msg := []byte("To: recipient@example.net\r\n" +
"Subject: discount Gophers!\r\n" + "\r\n" + "This is the email body.\r\n")
err := smtp.SendMail("mail.example.com:25", auth, "sender@example.org", to, msg)
if err != nil { log.Fatal(err) }
Click to show internal directories.
Click to hide internal directories.