all repos — mail2 @ eb280f3a8a630d11b3b82a1b7507e12f911ba082

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

Format example
Joe Grasse joegrasse@gmail.com
Fri, 29 Jun 2018 08:42:16 -0500
commit

eb280f3a8a630d11b3b82a1b7507e12f911ba082

parent

1cc410a92186b748cbe850f1b514f210a3807494

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

jump to
M README.mdREADME.md

@@ -18,7 +18,12 @@ "github.com/joegrasse/mail"

) func main() { - err := mail.New().SetFrom("From Example <from@example.com>").AddTo("to@example.com").SetSubject("New Go Email").SetBody("text/plain", "Hello Gophers!").Send("smtp.example.com:25") + err := mail.New(). + SetFrom("From Example <from@example.com>"). + AddTo("to@example.com"). + SetSubject("New Go Email"). + SetBody("text/plain", "Hello Gophers!"). + Send("smtp.example.com:25") if err != nil { fmt.Println(err)