In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi, > > I know it's slightly not totally about PHP.. but since I wanna do it with > PHP, i'll post it here. I was wondering if anybody can help me to accomplish > the following: > > - Somebody sends an email to, for example, [EMAIL PROTECTED] This > email has some attachments, being photo's to be added to some system. > - Sendmail recievers the email, and sends it to some PHP script > - This script parses the input it gets, ... > > Now, what would I need to do for all this to happen? > Wouter >
An alias in sendmail to pipe mail to 'fotoupload' to your php script, and the command line version of php available to run the script should be a start. The alias will look something like: fotoupload: "| /full/path/to/yourscript.php" Cheers -- Quod subigo farinam $email =~ s/oz$/au/o; A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php