I use Mailgun for a site that I maintain, usually Mailgun works fine, but I am facing some strange problem. My script calls the HTTP API to send messages using Mailgun, they then appear in my log as "received", but then they are "delivered" for a very long time, often not delivered at all and simply remain as "accepted". Has anyone experienced a similar error or can anyone suggest a way to fix this? I can guess it in the arguments provided by the API, but I cannot understand the problem for life.
The problem exists for different recipient domains and different times of the day.
The JSON message log is shown below. Of course, I changed the addresses and domains.
{ "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" }
email mailgun
Dom Weldon Sep 24 '14 at 9:12 2014-09-24 09:12
source share