RE: [PHP] Parsing received email

From: Date: Tue, 09 Oct 2001 18:19:12 +0000
Subject: RE: [PHP] Parsing received email
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70526@lists.php.net to get a copy of this message
> 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

« previous php.general (#70526) next »