RE: [PHP] Parsing received email
| From: | JSheble | Date: | Tue, 09 Oct 2001 19:05:12 +0000 |
| Subject: | RE: [PHP] Parsing received email | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-70528@lists.php.net to get a copy of this message | ||
this intrigues me... how do you get an email to go to and/or run a PHP script... this opens all kinds of possibilities... what is required for this?
At 07:19 PM 10/9/2001 +0100, you wrote:
I've got an email address set up so that is an alias for a PHP script. IE, if you send an email to that particular address, the email is passed off to the script and it reads it in and processes it. All of this is working find and well. I can do a regex on every line to determine who the email was to, from, subject, etc. However, what I am having problems with is that the rest of the email header isn't the same depending on what email client is used to send the email in the first place. So with that in mind, is there any way to tell when the headers stop and the actual body begins? There's a mime decoding class here (and also now in PEAR): http://www.phpguru.org -- Richard Heyes "I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones." - Albert Einstein -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net