Skip to content

wealthworks/csmtp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CSMTP

example code:

	csmtp.Host = Settings.SMTP.Host
	csmtp.Port = Settings.SMTP.Port
	csmtp.Name = Settings.SMTP.SenderName
	csmtp.From = Settings.SMTP.SenderEmail
	csmtp.Auth(Settings.SMTP.SenderPassword)

	subject := "测试主题"
	body := "我是一封电子邮件!golang发出."

	err := csmtp.SendMail(subject, body, toEmail)
	if err != nil {
		log.Fatal(err)
	} else {
		log.Print("send OK")
	}

About

smtp for qq mail service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages