package
Version:
v0.0.0-...-3db7acb
Opens a new window with list of versions in this module.
Published: Mar 10, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Dial(addr string) (*smtp.Client, error)
-
func SendMail(host, user, password, to, subject, body, mailtype string) error
-
func SendMailUsingTLS(addr string, auth smtp.Auth, from string, to []string, msg []byte) (err error)
-
type Email
Dial return a smtp client
func SendMail(host, user, password, to, subject, body, mailtype string) error
SendMail send email
SendMailUsingTLS 参考net/smtp的func SendMail()
使用net.Dial连接tls(ssl)端口时,smtp.NewClient()会卡住且不提示err
len(to)>1时,to[1]开始提示是密送
Source Files
¶
Click to show internal directories.
Click to hide internal directories.