procmail for invoking php script?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Waleed Zubair
    New Member
    • Jul 2010
    • 1

    procmail for invoking php script?

    how can i use procmail for invoking php script whenever an email is received?

    basically i want procmail to invoke and pass the contents of email to the php script,so that it can access database for querying according to the email and send the retrieved information from the database back to the procmail,which would send an email to that particular email address,from which email was received.
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    I'm not sure what procmail is, but php can query a mailserver for new mail and parse them.

    php works great with MySQL and other DB's too, check the php documentation for more info on how to use it.

    You can send emails from php very easily using the mail() function.


    Dan

    Comment

    Working...