How to manage replies directly in email notifications

I would like to know how best to manage responses to email notifications.

eg. The user is notified by email and instead of clicking on the link to go to the website and respond to it, they could directly respond to the email.

+2


source to share


4 answers


Use the Message-ID header field to uniquely identify each message. If there is a reply to this message, the client MUST put this message ID in the In-Reply-To header field in the reply message. See RFC 2822 for details.



+1


source


There is no better way. Depending on what you want to do with the responses, you can also process them with thunderbirds post filters;).

Put a unique identifier in the subject or body of the sent notification so you can correctly identify and categorize the email when the user replies with the email.



If you want to stick with php: choose php pop3 client class from: http://www.phpclasses.org/browse/package/2.html or find client elsewhere and then just parse your post responses and categorize / process them but you want.

+2


source


Attach ID and Authentication Token in the subject line.

Connect it to a script that can handle it with Procmail

+1


source


As an educational exercise, you can read the PHP code and documentation in the drupal module http://drupal.org/project/mailhandler of the mail handler. This accepts emails and looks for the script as instructions.

The answer above about validating the post id is also very important.

+1


source







All Articles