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

clamscan command

Posted by persianwhois, 04-21-2009, 05:04 AMCan you please provide a clamscan ssh command for...

Reseller Account

Posted by yachtinterac, 09-02-2002, 10:00 AMHi, Does anybody know of a company that does web...

.htaccess question

Posted by MikeWalczak, 10-23-2012, 02:25 PMHey everyone, I've got a question about .htaccess. I...

Unable to import mysql database

Posted by bambinou, 10-29-2012, 06:08 AMHello, I have exported a mysqwl database from a cpanel...

Opinion about Xen

Posted by copahost, 09-14-2008, 06:51 PMI have read many topics here about Xen vs Virtuozzo vs...