Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 339 Bytes

README.md

File metadata and controls

17 lines (15 loc) · 339 Bytes

gomailer

Quick mailer in go

Example:

mail := gomailer.New()
mail.Remote = "localhost:25"
mail.Sender = "sender@gomailer.com"
mail.Recipient = "recipient@gomailer.com"
mail.Headers.Subject = "Example"
mail.Headers.ContentType = "text/html"
mail.Content = "<h1>Example</h1>"
if err := mail.Send(); err != nil {
    panic(err)
}