Home » Mail » Mail_Mime » Bug #4408
HTML Parts Incorrect HREF=3D""
Details
| 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) |
Comments
[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--