I have created an alias in sendmail to pipe email to a PHP script that I would like to use to process the email. The alias works fine, but I am uncertain how to access the contents of the email (STDIN). The PHP script is running as a CGI and I want to parse the email and insert into a MySQL DB. Once I can get the email into a variable I'm good to go. Anyone know how to get it into a variable though?
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
Fax: 804.978.0118
http://www.247computing.com/