【发布时间】:2015-09-02 20:13:52
【问题描述】:
我想在 Go 中使用我的 yahoo 邮件向多个收件人发送邮件,但我只收到来自所有收件人的邮件。
代码:
err := smtp.SendMail(
"smtp.mail.yahoo.com:25",
auth,
"testmail1@yahoo.com",
[]string{"testmail1@yahoo.com, testmail2@yahoo.com"},
[]byte("test")
消息:
From: "testMail1" <testmail1@yahoo.com>
To: testMail1 <testmail1@yahoo.com>, testMail2 <testmail2@yahoo.com>,
Subject: "mail"
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: base64
这是输出:
2015/05/18 20:22:26 501 Syntax error in arguments
我做错了什么?
【问题讨论】:
-
this 答案可能有用。