我们有一个应用程序,它调用Trustpilot API向客户发送邀请电子邮件,以便他们能够审查他们最近的订单。
创建评审链接等是正确的。但是,当调用最后一步实际发送邀请电子邮件时,响应的“状态”字段总是“未发送”,而电子邮件不发送。
JSON响应如下:
{
id: "<response id>",
businessUnitId: "<business unit id>",
businessUserId: "<business user id>",
recipient: {
name: "<recipient name>",
email: "<recipient email>"
},
referenceId: "<order id>",
templateId: "<default en-GB template code>",
locale: "en-GB",
sender: {
email: "noreply.invitations@trustpilot.com",
name: "<client name>"
},
replyTo: "noreply.invitations@trustpilot.com",
createdTime: "2015-04-29T14:34:40.176727Z",
preferredSendTime: "2015-04-29T14:34:40.176727Z",
sentTime: null,
tags: [ ],
redirectUri: "<trustpilot review url>",
status: "notsent",
source: "Kickstart"
}我们没有修改客户的域名SPF记录,所以我使用noreply.invitations@trustpilot.com作为发送者和回复地址。此外,我已经设置了首选的发送时间,以便电子邮件应该立即发送。我所做的一切都不起作用。
有人能告诉我可能做错了什么吗?
发布于 2015-04-29 16:24:39
弄明白了--我指定的地址的回复被拒绝了。即使它是有效的(或者当我尝试使用noreply.invitations.)--我转而使用客户端一直在使用的一个,然后他们就立即开始发送。
发布于 2016-01-02 22:07:58
回复地址应该是您的B2B帐户中预先配置的地址之一。你可以在这里看到:https://support.trustpilot.com/hc/en-us/articles/201841237-Sender-Information
https://stackoverflow.com/questions/29947191
复制相似问题