Re: Bug in Mail/mime.php
| From: | Tomas V.V.Cox | Date: | Fri, 22 Feb 2002 17:33:51 +0000 |
| Subject: | Re: Bug in Mail/mime.php | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-4846@lists.php.net to get a copy of this message | ||
El vie, 22-02-2002 a las 15:10, Steen Rabol escribió:
> Hi
>
> I think there is a small bug in the mime.php
>
> let's say you have this in a HTML string:
>
> $html = "<style type=\"text/css\">.test {color:
> #000000;}</style>";
>
> NOTICE the .(dot) before test, after adding the sting to
> $mime->setHTMLBody($html); the .(dot) is gone
>
By default mime expects a filename in the first argument not a string.
If you want to pass the data itself put false as the second argument:
$mime->setHTMLBody($html, $isfile=false);
Tomas V.V.Cox