how to use smtp package

832 views
Skip to first unread message

土星五号

unread,
Dec 25, 2010, 9:53:15 AM12/25/10
to golang-nuts
can anyone give me a example?

woo

unread,
Dec 26, 2010, 8:49:02 PM12/26/10
to 土星五号, golang-nuts
sub := "Subject: Test\r\n\r\n"
content := "content"
smtp.SendMail("smtp.gmail.com:587",smtp.PlainAuth("", "aa...@gmail.com", "password", "smtp.gmail.com"), "aa...@gmail.com", []string{"re...@gmail.com"},[]byte(sub + content))

liuaifu

unread,
Dec 27, 2010, 6:40:55 AM12/27/10
to woo, golang-nuts
Thank you, i have test it and successful.

saturnfive

Guilherme Lino

unread,
Dec 12, 2012, 3:22:04 PM12/12/12
to golan...@googlegroups.com
tanks
Reply all
Reply to author
Forward
0 new messages