Hi, is there a way to get notified when emails fail?
Get alerted when emails fail?
Best answer by Anonymous
One outside of the box workflow to consider is to leverage Customer.io segmentation and a segment campaign trigger to create a failed message workflow.
Step 1 - Create a Segment to capture recently failed messages
Step 2- Use this segment to create a segment-based campaign
Step 3 - Define your campaign workflow
This step is obviously personal preference but let’s assume we want to trigger a slack message for each failed notification. Note: If you wish to send a failed message to yourself via email, you’ll simply hard code the recipient field in the message composer to your email address.
Step 3a (optional) - Add a webhook to fetch and store information about the delivery.
There are many reasons a message action may fail and not all require immediate investigation. For this reason I find it beneficial to print and store the most recent delivery information to the customer profile where a message failure occurred. Storing the response allows you to fetch information about the failure directly inline of the notification.
Get recent messages -
Store response -
Add Slack Alert -
Step 4 - Activate Campaign
Now that your alerting journey is all set and ready to go, it’s time to activate your campaign. You’ll set this campaign live just like any other campaign in Customer.io. One caveat to consider is that you’ll likely want to set this campaign to send to future matches of the trigger only.
I hope this workflow is straightforward enough to accomplish your use case!
Reply
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.