Extension

Developer
Supported

Escort

ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5, ExpressionEngine 6

Back to this add-on's main page
View Other Add-ons From Derek Hogue

     

You must be logged in to post.

Escort tried to deliver your email with Mailgun but the service failed

Support (Resolved)

Tyssen
Tyssen

I’m seeing this intermittently in EE’s developer log. Checking Mailgun’s logs shows only successful deliveries, no errors.

The emails being sent are CartThrob order confirmation emails and the majority are going through but there’s a still a good number that don’t.

Is there anything else I can do to troubleshoot this further?

Derek Hogue
# 1
Developer
Derek Hogue

Most likely these are messages being rejected due to something being malformed in the request. This could be a malformed email address, or maybe some conditional code in your email template which is causing an error, and thus an empty message body, which Mailgun won’t accept. Unfortunately these kinds of errors happen at the request level (they are entirely rejected before getting processed), so they’re not logged by Mailgun.

Tyssen
# 2
Tyssen

So would the result be the same if we tested with another provider too?

Derek Hogue
# 3
Developer
Derek Hogue

In theory, yes. It might be a good idea to setup a backup provider, and then if you see both failing in quick succession in the logs, you’ll know it’s the message and not something specific to the provider account.

Note that when a message fails to send via Escort it will fall back to being sent natively with EE in the end.

Tyssen
# 4
Tyssen

In that situation, if EE failed to send too, wouldn’t that also appear in the developer log?

Derek Hogue
# 5
Developer
Derek Hogue

It would not, since the final fallback is handled by EE internally (essentially Escort ends up returning “false” at the end of the email hook if no services work), and EE doesn’t log email failures, only Escort does. (EE’s native email method also doesn’t do as much validation as the third-party services do, so it will left more through.)