Documentation ¶
Overview ¶
Package email provides a simple SMTP client to access remote mail server.
Eg: s := smtp.New("smtp.exmail.qq.com:25", "notify@a.com", "password") s.SendMail("notify@a.com", "ulric@b.com;rain@c.com", "subject", "body, <font color=red>red</font>")
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SMTP ¶
SMTP is the structure for smtp connection
func (*SMTP) SendMail ¶
SendMail connects to the server at addr, switches to TLS if possible, authenticates with the optional mechanism a if possible, and then sends an email from address <from>, to addresses <to>, with message msg.
The parameter <contentType> specifies the content type of the mail, eg: html.
Click to show internal directories.
Click to hide internal directories.