It depends on your MAIL SERVER (and on your OS.) For Linux I think SendMail can forward mails to an external program For WinNT I know POSTOFFICE allows this. But PostOffice is commercially released not for free. In this case the mails are redirected to the program via STDIN Bye N. -----Messaggio originale----- Da: Jeremy Bowen <[EMAIL PROTECTED]> A: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Data: giovedì 18 gennaio 2001 20.32 Oggetto: [PHP] Can a PHP program recieve an e-mail and write it to a file??? >Hey, > >Here is what I need to do, I need to have a PHP script recieve an e-mail and >write it to a file after erasing whatever was in the file before. > >I suppose that it should have some sort of authentication built in to prevent >people from e-mailing PHP code that could be processed and do bad things. > >Is there any way to do this? Can a PHP script recieve and e-mail? > >Could the e-mail be written to a mail queue say [EMAIL PROTECTED] >and the script periodically check the mail queue for new e-mail print its >contents to a text file somewhere in the serverroot and then erase the mail >queue??? > >Does this sound possibile??? > >Thanks, > >Jeremy > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]