Skip to content

gronpipmaster/go-mailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-mailer

Async and sync golang mailer

Installing

go get github.com/gronpipmaster/go-mailer

Usage

//create mail server
mailServer := mailer.New("example.com:587", "from", "pass")
//listen and wait messages
go mailServer.Listen()
//create message
subject := "Hi"
body := "Hello <a href=\"#\">Some link</a>"
msg := mailer.NewHtmlMessage(
    []string{"[email protected]"},
    "[email protected]",
    "from username",
    subject,
    body,
)
//send
mailServer.SendAsync(msg)

About

Async and sync golang mailer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages