- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我正在尝试使用 mandrill 电子邮件服务发送电子邮件,但出现以下错误:
[
{
"email": "pranav_withyou@hotmail.com",
"status": "rejected",
"_id": "daab0daa538a4fe9b161be709593be0b",
"reject_reason": "unsigned"
}
]
我正在尝试使用 javascript 中的 ajax 调用发送电子邮件,例如:
$.ajax({
type: "POST",
url: "https://mandrillapp.com/api/1.0/messages/send.json",
data: {
"key": "RemovedforSecurityitscorrect",
"message": {
"html": "<p>Example HTML content</p>",
"text": $('#emailText').val(),
"subject": $('#emailSubject').val(),
"from_email": $('#fromEmail').val(),
"from_name": $('#fromName').val(),
"to": [{
"email": $('#toEmail').val(),
"name": $('#recipientName').val(),
"type": "to"
}],
"headers": {
"Reply-To": $('#fromName').val()
}
},
success: function (data) {
console.log("Email Sent");
},
error: function (xhr, status, error) {
console.log("Error while sending mail");
}
}
});
所有值都将传给 ajax 调用,并且从响应中可以明显看出对服务器的调用。有什么问题?
最佳答案
我明白了,这是一个愚蠢的错误。我试图通过我的个人电子邮件 ID 发送邮件,该电子邮件 ID 位于不同的域,而不是配置和验证 Mandrill 的域。
搜索错误原因,我发现当从未经验证的域或没有有效 SPF 和 DKIM 记录的域发送的邮件将被拒绝,拒绝原因为未签名时,我发现此错误是从 Mandrill 发送的。
更多信息引用
要为 Mandrill 进行与 SPF 和 DKIM 相关的所需设置,请引用:
关于javascript - 山魈 "reject_reason":"unsigned",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38355344/
我正在尝试使用 mandrill 电子邮件服务发送电子邮件,但出现以下错误: [ { "email": "pranav_withyou@hotmail.com",
我正在尝试使用山d电子邮件服务发送电子邮件,但出现以下错误 Full Response [ { "email": "someemail@somedomain.com",
我有一个 node.js 应用程序,我想使用 Mandrill 发送交易电子邮件。但是,当我发送时,我收到“reject_reason: 'invalid-sender'”。这里有一些日志记录来显示正
我有一个 Python 脚本,它使用以下参数调用/orders 方法: { "size": "0.01", "price": "", "side": "buy", "p
我是一名优秀的程序员,十分优秀!