Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientType ¶
type ClientType struct { Host string // smtp地址 Port int // 端口 Username string // 用户名 Password string // 密码 Message *MessageType // 消息 }
ClientType 发送客户端
func NewClient ¶
func NewClient(host string, port int, username string, password string, message *MessageType) *ClientType
NewClient 返回一个邮件客户端 host smtp地址 port 端口 username 用户名 password 密码 message 消息
func (*ClientType) SendMessage ¶
func (client *ClientType) SendMessage() (bool, error)
SendMessage 发送邮件
Click to show internal directories.
Click to hide internal directories.