Documentation
¶
Index ¶
- Variables
- func DialSmtp(addr string) (*smtp.Client, error)
- func Init(config SmtpConfig) error
- func MailTo(to string, subject string, body string) error
- func SendMailWithTLS(addr string, auth smtp.Auth, from string, to []string, msg []byte) (err error)
- func Smtp(config *SmtpConfig, to string, subject string, body string) error
- type SmtpConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUninitialized = errors.New("smtp 未初始化")
Functions ¶
func Init ¶
func Init(config SmtpConfig) error
func SendMailWithTLS ¶
SendMailWithTLS send email with tls
Types ¶
Click to show internal directories.
Click to hide internal directories.