Can a PHP program recieve an e-mail and write it to a file???
| From: | Jeremy Bowen | Date: | Thu, 18 Jan 2001 19:32:50 +0000 |
| Subject: | Can a PHP program recieve an e-mail and write it to a file??? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-35426@lists.php.net to get a copy of this message | ||
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 php-email-processor@domain.com
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