When sending email to web hook (receiving) send also the attempt numbr
When receiving emails, we sometimes return temporary error. Mailgun then waits and later tries again, 8 times. If we knew the attempt number, we could better handle the fails - for example if this was the last attempt (we could alert the admin this email was "lost" ) vs the first (just log it).
Hi there,
Thanks for submitting and supporting this feature request!
We upgraded our Webhooks to report additional data. This includes timestamps that will match events that occur to Webhooks in the delivery process.
Unfortunately, we will not have a feature that shows exactly what number of attempts are remaining— especially since that is not the only data we’re tracking. It makes sense for all events to be marked with a timestamp, therefore you can utilize the timestamps to determine how many retries had been attempted. Additionally, we offer a couple quick reads on how our updated Webhooks work:
https://help.mailgun.com/hc/en-us/articles/202236504-How-do-webhooks-work-
https://www.mailgun.com/blog/same-api-new-tricks-get-event-notifications-just-in-time-with-webhooks
Thanks again for your patience and understanding as we work to improve our product!
-The MG Team
-
Anonymous commented
Perhaps to return a 2 properties, "attemptCount" and "attemptsLeft".