我有一个node.js应用程序,我想使用Mandrill发送事务性电子邮件。然而,当我发送的时候,我得到了"reject_reason:'invalid-sender'“。以下是一些日志记录,以显示正在发生的情况:
MandrillMail::send sent
{
from: 'counselor@nosend.com',
to: [ { type: 'to', email: 'toddrun@nosend.com' } ],
text: 'Sample Message',
html: '<p>Sample Message</p>',
subject: 'Regarding your account with Zev J'
}
and got back
[ {
email: 'toddrun@nosend.com',
status: 'rejected',
_id: '0ef9980ab50d448cb8bc1fcec2d614fc',
reject_reason: 'invalid-sender'
} ]请注意,在实际的日志文件中,"nosend“值是真实的域,所有的电子邮件地址都是真实的收件箱,我可以通过Gmail向其发送测试消息。
那么,是什么导致了“无效发件人”呢?提前感谢!
发布于 2014-08-08 22:40:56
让这成为一个教训,无论你看了多少次你写的代码,拼写错误都是很难找到的。请注意,我有"from“而不是"from_email”。。。好了!
https://stackoverflow.com/questions/25194867
复制相似问题