Format example
Joe Grasse joegrasse@gmail.com
Fri, 29 Jun 2018 08:42:16 -0500
1 files changed,
6 insertions(+),
1 deletions(-)
jump to
M
README.md
→
README.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)