Skip to content

zs5460/mail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mail

Install

go get github.com/zs5460/mail

Usage

cfg := mail.Config{
	MailSubject:   "test",
	MailServer:    "smtp.xxx.com:25",
	MailSender:    "xxx@xxx.com",
	MailSenderPwd: "******",
	MailReciver:   "abc@abc.com",
}

err := mail.SendMail(
	cfg.MailSender,
	cfg.MailSenderPwd,
	cfg.MailServer,
	cfg.MailReciver,
	cfg.MailSubject,
	"this is a test mail",
)
if err != nil {
	log.Println(err)
}

Licence

Released under MIT license, see LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages