mail
mail copied to clipboard
A Go Email Utility
(A Go Email Utility, still under development...)
USAGE
mail.From("[email protected]").
To("[email protected]", "[email protected]").
Subject("hello").
Body("test").
Body(mail.Body{Value: "<div>hello world</div>", ContentType: "text/html; charset=UTF-8"}).
Attach("report.csv").
Attach(mail.Attachment{FileName: "report2.csv", Content: filebytes}). // filebytes, _ := ioutil.ReadFile("report.csv")
Send()
default_from := mail.From("[email protected]")
default_from.To("[email protected]").Subject("hello world").Body("hello world").Send()
default_from.To("[email protected]").Subject("go go go").Body("go go go").Send()