Re: PHP intercepting incoming email

From: Date: Thu, 30 Nov 2000 15:47:33 +0000
Subject: Re: PHP intercepting incoming email
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28057@lists.php.net to get a copy of this message
>>>>> "BG" == "Boget, Chris" <Chris.Boget@wild.net> writes: >> what you can do .. forward an email address to pipe into a command >> that being a > Ok, how do I do this? Where can I go to learn what is necessary > for this? Assuming your server is some flavour of unix, have a look in the man pages: man 5 procmailrc (for details of the procmailrc files) man 5 procmailex (for examples of procmail recipes) A procmailrc file contains a set of rules on what to do when an email is received. One of the things you can do is pipe the body or headers of the email into an external script for processing. If you've compiled PHP as a standalone interpreter, that could be your PHP script directly. If you've compiled it as an apache module then things are a little more complicated, you'll have to find someway of submitting the email to the web server (using curl, snarf, wget or something similar I suppose). -robin -- Robin Vickery............................................... Planet-Three, 3A West Point, Warple Way, London, W3 0RG, UK Email: robin@planet-three.net Phone: +44 (0)870 729 5444

« previous php.general (#28057) next »