Documentation ¶
Index ¶
- Variables
- func DetectSMTPPortsAndEncryption(server string, port int) (encryFlag bool, err error)
- func GetMXRecords(domain string) ([]string, error)
- func SendByGmail(fromMail, fromPass, toMail, title, content string, smtpCb ReqSmtpServer, ...) error
- func SendEmail(from, to, subject, body string, smtpPort int) error
- type ReqSmtpServer
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MailPort []int = []int{25, 465, 587}
)
Functions ¶
func DetectSMTPPortsAndEncryption ¶ added in v1.11.25
检测 SMTP 服务器支持的端口和加密方式
func GetMXRecords ¶ added in v1.11.25
func SendByGmail ¶
func SendByGmail(fromMail, fromPass, toMail, title, content string, smtpCb ReqSmtpServer, isHTML bool) error
Types ¶
type ReqSmtpServer ¶
Click to show internal directories.
Click to hide internal directories.