Re: Parsing received email

From: Date: Tue, 09 Oct 2001 16:40:37 +0000
Subject: Re: Parsing received email
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70512@lists.php.net to get a copy of this message
The header of an email message is separated by a blank line from the body... so as soon as you see a blank line that's the end of the header. -philip On Tue, 9 Oct 2001, Boget, Chris 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? > > Chris >

« previous php.general (#70512) next »