package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Mar 20, 2024
License: MIT
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 Send(port int, host, sendMail, password, sendName, toEmail, title, body string)
-
func SendMailUsingTLS(addr string, auth smtp.Auth, from string, to []string, msg []byte) (err error)
func Send(port int, host, sendMail, password, sendName, toEmail, title, body string)
参考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.