The highest tagged major version is
v2 .
Discover Packages
github.com/gogf/gf
net
gsmtp
package
Version:
v1.9.4
Opens a new window with list of versions in this module.
Published: Sep 24, 2019
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Overview Index Constants Variables Functions Types type SMTP New(address, username, password) (s) SendMail(from, tos, subject, body, contentType)
Documentation
¶
Package gsmtp provides a SMTP client to access remote mail server.
eg:
s := smtp.New("smtp.exmail.qq.com:25", "notify@a.com", "password")
glog.Println(s.SendMail("notify@a.com", "ulric@b.com;rain@c.com", "subject", "body, <font color=red>red</font>"))
SMTP is the structure for smtp connection
func New(address, username, password string ) *SMTP
New creates and returns a new SMTP object.
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.