Home > Software engineering >  Check if an email was replied to using Mailgun API
Check if an email was replied to using Mailgun API

Time:08-31

I'm building a SAAS app that allows users to send email sequences, I want to stop the sequence when a user replies to an email sent by my app.

Based on what I found on the internet I should use Mailgun Routes to accomplish it.

I have all set up (Domain and MX records) but I couldn't forward emails to my server.

What I want to accomplish is the following:

  1. User A uses this email address ([email protected])
  2. User B uses this email address ([email protected])
  3. User A sends an email using my platform, my platform calls mailgun API to send it
  4. User B receives that email and hits reply
  5. Mailgun notices that User B replies and forwards that reply to my server.

I do not own neither example.com nor lorem.com domains

What am I doing wrong?

CodePudding user response:

If you control neither, you can't. Set the Reply-To address to something you control and that's linked to Mailgun Routes, check the Message-ID then forward the e-mail to user B.

Rather than using the Message-ID header, some people generate a unique Reply-To address (replies [email protected]) as the In-Reply-To header isn't guaranteed to be sent.

  • Related