【发布时间】:2014-11-18 17:09:10
【问题描述】:
我将 Mailgun 用于我维护的网站,通常 Mailgun 效果很好,但我遇到了一个奇怪的问题。我的脚本调用 HTTP API 以使用 Mailgun 发送消息,然后这些消息在我的日志中显示为“已接受”,但随后需要很长时间才能“交付”,通常根本无法交付,只是保持为“公认”。有没有人遇到过类似的错误,或者有人可以提出解决方法吗?我猜它是在提供给 API 的参数中,但我无法终生找出问题所在。
不同的收件人域和一天中的不同时间存在问题。
有问题的消息的 JSON 日志如下。当然,我已经更改了地址和域。
{
"tags": [],
"timestamp": 1411498829.247304,
"envelope": {
"targets": "my-own-email@address.com",
"transport": "",
"sender": "noreply@the-site-in-question.com"
},
"recipient-domain": "address.com",
"event": "accepted",
"campaigns": [],
"user-variables": {},
"flags": {
"is-authenticated": true,
"is-system-test": false,
"is-test-mode": false
},
"message": {
"headers": {
"to": "my-own-email@address.com",
"message-id": "20140923190027.112157.29352@the-site-in-question.com",
"from": "\"the-site-in-question.com\" <noreply@the-site-in-question.com>",
"subject": "Dom, your password was reset."
},
"attachments": [],
"recipients": [
"my-own-email@address.com"
],
"size": 556
},
"recipient": "my-own-email@address.com",
"method": "http"
}
【问题讨论】: