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/

Esta resposta foi útil?

 Imprimir este Artigo

Leia também

OpenITC releases new UI, layout and features for Client Portal/My Virtual Servers

Posted by ServerSean, 12-14-2009, 04:04 PM OpenITC are proud to announce the release of an...

using php do display database

Posted by bumpn, 10-23-2012, 05:35 PMi50(dot)tinypic(dot)com/ea332q(dot)jpg now lets say I wanted...

SQL 2005 Express Update

Posted by boonchuan, 05-04-2007, 07:50 AMI am using SQL 2005 Express Management Console in the...

Genius-hosting??

Posted by Luminance, 09-03-2002, 06:13 PMHello guys, Is there any other company comparable to...

Compromised???

Posted by Chinese Democracy, 04-20-2009, 12:01 PMIt appears that one new sign-up on a shared...