Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.12

Bug #4408 HTML Parts Incorrect HREF=3D""
Submitted: 2005-05-22 23:37 UTC
From: cpriest at warpmail dot net Assigned: cipri
Status: Bogus Package: Mail_Mime
PHP Version: 5.0.4 OS: linux/apache
Roadmaps: (Not assigned)    
Subscription  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2005-06-09 22:29 UTC
Package:
Bug Type:
Summary:
From: cpriest at warpmail dot net
New email:
PHP Version: Package Version: OS:

 

 [2005-05-22 23:37 UTC] cpriest at warpmail dot net
Description: ------------ Standard HTML parts coming out of Mail_Mime are getting mangled. Specifically, all name="value" pairs are coming out as name=3D"value". I'm using PHP 5.0.4, With the following version of Pear Mail 1.1.4 stable Mail_Mime 1.3.0 stable Reproduce code: --------------- <? require_once('PEAR.php'); require_once('Mail.php'); require_once('Mail/mime.php'); $text_part = 'This is a test'; $html_part = '<HTML><BODY><A HREF="http://www.sample.com">Test Link</A></BODY></HTML>'; $objMime = new Mail_mime(); $objMime->setTXTBody($text_part); $objMime->setHTMLBody($html_part); $email_body = $objMime->get(); $email_headers = $objMime->headers($my_email_headers); echo "<PLAINTEXT>"; echo $email_body; ?> Expected result: ---------------- --=_ee4eb7295e1c7896513dc7080bc1c600 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit This is a test --=_ee4eb7295e1c7896513dc7080bc1c600 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable <HTML><BODY><A HREF="http://www.sample.com">Test Link</A></BODY></HTML> --=_ee4eb7295e1c7896513dc7080bc1c600-- Actual result: -------------- --=_ee4eb7295e1c7896513dc7080bc1c600 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit This is a test --=_ee4eb7295e1c7896513dc7080bc1c600 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable <HTML><BODY><A HREF=3D"http://www.sample.com">Test Link</A></BODY></HTML> --=_ee4eb7295e1c7896513dc7080bc1c600--

Comments

 [2005-06-09 22:29 UTC] cipri
Thank you for taking the time to write to us, but this is not a bug. This is correct. The body of the e-mail is encoded with "quote-printable" encoding. It translates = characters and characters > dec(126). See http://en.wikipedia.org/wiki/Quoted-printable and http://nl3.php.net/manual/en/function.imap-qprint.php for details