I got this idea on how to monitor if a lead replied to an email:
- We use Mailgun to send emails out, and also have MX records for Mailgun to read incoming emails for a certain subdomain
- Every email Mautic sends out gets sent over Mailgun using that subdomain - e.g., if I want to send as email@example.com I send as firstname.lastname@example.org instead, and the lead will then reply to email@example.com
- When Mailgun receives a reply to firstname.lastname@example.org, I set up a route that filters messages that are sent to @sub.domain.si and forwards them to email@example.com and at the same time, I trigger a webhook using Mailgun where all the email data (to, from, body, subject,…) are included.
- I capture this Mailgun’s webhook using a custom-developed API that reads the From: field (so that I know which Mautic lead/contact I need to bind it to), and finally use this same API to inject a custom event into Mautic (to this lead).
What do you guys think? Does it make sense?
Whereas this last part of inserting data as custom event bound to a certain lead still bothers me… I don’t want to use forms and instead want to generate an event that can be shown under contacts (the same way a ‘contact identified’ or ‘page visited’ is shown). I have looked at many SQL tables (I have a self-hosted instance, of course) but still haven’t found a way to manage this task. Otherwise, the above described points 1 to 3 (and first part of 4) work as expected.
I am really looking forward towards any feedback, either way.