Skip to main content
Solved

How to check that email was not delivered via API(email is not exists or invalid)

  • May 25, 2023
  • 1 reply
  • 71 views

terence
Forum|alt.badge.img

I want to know for sure that email was delivered, if so I consider it as successful send, no action required if not I need to do some stuff.
How can I check that email was not delivered through API

Best answer by evano

Hi terence,

There’s two ways that you can get this information:

  1. Pull the message directly with the Get message endpoint and inspect the error_type field
  2. Create a rule that triggers on sending errors and deliver those events to a webhook

The second option will use fewer API calls due to being event-based, rather than polling.  A rule that does this would look like:
 

A screenshot of Front’s custom rule editor displaying a rule that triggers on message delivery failures and sends those failures to a webhook.

 

1 reply

Forum|alt.badge.img+5
  • Fronteer
  • Answer
  • May 26, 2023

Hi terence,

There’s two ways that you can get this information:

  1. Pull the message directly with the Get message endpoint and inspect the error_type field
  2. Create a rule that triggers on sending errors and deliver those events to a webhook

The second option will use fewer API calls due to being event-based, rather than polling.  A rule that does this would look like:
 

A screenshot of Front’s custom rule editor displaying a rule that triggers on message delivery failures and sends those failures to a webhook.