I'm working on a PHP widget to receive receipt confirmation emails from users, and need a way to link the replies received with the original emails sent.
Scenario: Our office management system allows us to email a work order to the labor who will be performing the work. We ask for the labor to reply to the work order email to acknowledge that they received it.
As we want a PHP script to receive their acknowledgement and set an appropriate flag for that work order in our office management system, it's important that we know which work order the labor's acknowledgement applies to.
I originally thought I could generate (and record) a specific Message-ID for the outgoing work order email and that replies from labor would pass that original Message-ID back to us in the form of an in-reply-to or a reference header, but in my first non-Outlook (Outlook does provide the original in-reply-to message-id) test response from a Gmail account, Gmail seems to have discarded the original message ID and created it's own in-reply-to Message-ID for the original message, so it doesn't appear that I can rely getting back the original message-id from all email platforms.
In other words:
1) I want one PHP script to send an email to a user
2) When the user replies to that email, another PHP script will access the POP3 mail server and download the response, and
3) Positively identify the user's reply as being in response to the first email, or
4) Positively identify the user's replay as pertaining to a specific work order #
Any ideas?
Scenario: Our office management system allows us to email a work order to the labor who will be performing the work. We ask for the labor to reply to the work order email to acknowledge that they received it.
As we want a PHP script to receive their acknowledgement and set an appropriate flag for that work order in our office management system, it's important that we know which work order the labor's acknowledgement applies to.
I originally thought I could generate (and record) a specific Message-ID for the outgoing work order email and that replies from labor would pass that original Message-ID back to us in the form of an in-reply-to or a reference header, but in my first non-Outlook (Outlook does provide the original in-reply-to message-id) test response from a Gmail account, Gmail seems to have discarded the original message ID and created it's own in-reply-to Message-ID for the original message, so it doesn't appear that I can rely getting back the original message-id from all email platforms.
In other words:
1) I want one PHP script to send an email to a user
2) When the user replies to that email, another PHP script will access the POP3 mail server and download the response, and
3) Positively identify the user's reply as being in response to the first email, or
4) Positively identify the user's replay as pertaining to a specific work order #
Any ideas?