Given a multi-mime email message, how to extract only the HTML?

Posted by Rahil, 01-09-2008, 02:53 AM
I am working on a custom mailing list script and I just need help with one last thing. I am sending an email with Thunberbird in a multi-mime format (plain text and HTML). If I look at the message source, there are the headers, the plain text email, and then the HTML email. How do I extract only the HTML part? I was thinking of using preg_match to find the line that has and the line that has , but I'm not sure how exactly to do that. Any tips/advice? Thanks guys! Last edited by Rahil; 01-09-2008 at 02:54 AM. Reason: Spelling mistake in title

Posted by mylinear, 01-09-2008, 07:59 AM
I do not have specific details, but this may help. http://pear.php.net/package/Mail_mimeDecode/

Was this answer helpful?

 Print this Article

Also Read

Have you succeeded in using mod_auth_mysql with AES crypt?

Posted by ImageLogic, 02-09-2011, 10:04 PMIf you've been fortunate enough to have made AES...

pf Rule Question

Posted by fog, 01-13-2008, 07:35 PMCan someone tell me what's wrong with the following? (Besides...

How is the service ?

Posted by aboovk, 09-04-2002, 01:06 AMHi, I need a resellers plan with 10 virtual domain...

Need to run this shell file in the background every 10 secs

Posted by mikey1090, 03-19-2007, 04:44 PMThe following shell script (a php loop to run a file)...

scrolling image help

Posted by leej23, 02-14-2011, 05:38 PMhi i have the site http://xtcservers.co.uk and i have...