Skip to content

Go library for easy sending international emails with attachments.

License

Notifications You must be signed in to change notification settings

pkorotkov/mailbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Mailbox

Using mailbox library you can easily send full-fledged emails with little effort:

creds := mailbox.NewCredentials("smtp.gmail.com:587")
creds.SetPLAINAuth("my_login", "my_password")

mes := new(mailbox.Message)
mes.From("Pavel", "***@gmail.com").
	To("Dmitry", "***@gmail.com").
	To("Sergey", "***@gmail.com").
	Subject("Meet-up").
	Body("It's high time guys!")
if err := mes.Attach("Agenda.txt"); err != nil {
	log.Fatal(err)
}

if err := mailbox.SendMessage(creds, mes); err != nil {
	log.Fatal(err)
}

About

Go library for easy sending international emails with attachments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages