[plug] [OT] Detecting Email Body

Mark O'Shea mark at musicalstoat.co.uk
Thu Aug 18 21:36:23 WST 2005


On Thu, 2005-08-18 at 21:22 +0800, Timothy White wrote:
> I'm writing a script, and need to be able to work out what is the
> email body, and what is the headers. I am doing this in PHP most
> likely.
> 
> Any ideas?
Yes, you should be looking for the first blank line (no spaces I think,
completely blank).  The line after that is the first of the body.

If in doubt though check the RFC's.

-- 
Mark O'Shea




More information about the plug mailing list