Quick mailer in go
Example:
mail := gomailer.New()
mail.Remote = "localhost:25"
mail.Sender = "[email protected]"
mail.Recipient = "[email protected]"
mail.Headers.Subject = "Example"
mail.Headers.ContentType = "text/html"
mail.Content = "<h1>Example</h1>"
if err := mail.Send(); err != nil {
panic(err)
}