php - Email addresses with GET parameters (or equivalent) -
i send email using php contains link, , when clicked, identify specific email clicked link on, update database, etc including link such following 123j12345k345jk3452sdfg identifies email:
<a href="http://example.com?task=updatesomething&id=123j12345k345jk3452sdfg">update stuff</a> instead of having them click link in email, wish allow recipient of email able reply email, , allow php receive returned email , identify specific email replied to.
is doing possible, , if so, how?
yes, relatively trivial. catch is php running in/from webserver. there's 2 obvious ways reply php:
running script daemon or via cron job, poll mailbox using pop/imap , scan mails pattern containing verification code. bit simpler if has defined characteristics, e.g. 40 hexadecimal digits enclosed in square brackets, of perhaps shorter pattern in subject line.
alternatively implement filter on smtp mta using php. have done in past using procmail delivery rule possible invoke script milter.
Comments
Post a Comment