golang 发送stmp 邮箱
package main import ( "fmt" "net/smtp" "strings") func SendToMail(user, password, host, to, subject, body, mailtype string) error { hp := strings.Split(host, ":") auth := smtp.PlainAuth("", user, password, hp[0]) var content_type string if mailtype =...阅读全文