all repos — mail2 @ 4b1c41db53f32c7e0a4aeeff9a58c5033c0b46e6

fork of github.com/joegrasse/mail with some changes

format second example
Joe Grasse joegrasse@gmail.com
Fri, 29 Jun 2018 08:48:57 -0500
commit

4b1c41db53f32c7e0a4aeeff9a58c5033c0b46e6

parent

eb280f3a8a630d11b3b82a1b7507e12f911ba082

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M README.mdREADME.md

@@ -60,7 +60,10 @@ </html>`

email := mail.New() email.SetPriority(mail.PriorityHigh) - email.SetFrom("From Example <from@example.com>").AddTo("to@example.com").AddCc("otherto@example.com").SetSubject("New Go Email") + email.SetFrom("From Example <from@example.com>"). + AddTo("to@example.com"). + AddCc("otherto@example.com"). + SetSubject("New Go Email") email.SetBody("text/plain", "Hello Gophers!") email.AddAlternative("text/html", htmlBody)