Page 1 of 1

PHP Autoresponder based on subject line of emails

Posted: Sun Dec 20, 2009 10:29 am
by RockSplat
Hello! I am looking for a PHP app that would monitor a mailbox and autoreply to messages based on subject lines. I am hoping to find something that would constantly monitor a mailbox.

This would be very similar to a simple Outlook Express message rule.

1) Message comes in with subject line 'xyz' they get response for 'xyz'
2) Messages comes in with subject line '123' they get response for '123'

Are there any free PHP apps out there that I could use for this?

Thanks for the advice!
Happy Holidays

Re: PHP Autoresponder based on subject line of emails

Posted: Mon Dec 21, 2009 11:04 pm
by josh
http://en.wikipedia.org/wiki/Procmail
There would be 2 ways to go about it, use procmail or an equivalent to get the email into PHP, and do all your processing there
or do your processing right in the procmail scripting language, and send it to PHP if the auto reply should be sent

The former would probably be more "correct" although doing the processing in PHP would make your system more portable.