gpt4 book ai didi

javascript - 山魈 "reject_reason":"unsigned"

转载 作者:可可西里 更新时间:2023-11-01 02:20:53 28 4
gpt4 key购买 nike

我正在尝试使用 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 发送的。

enter image description here

更多信息引用

要为 Mandrill 进行与 SPF 和 DKIM 相关的所需设置,请引用:

https://mandrill.zendesk.com/hc/en-us/articles/205582277-How-do-I-add-DNS-records-for-my-sending-domains-

关于javascript - 山魈 "reject_reason":"unsigned",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38355344/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com