Re: mail($To problem
| From: | Mike Quinn | Date: | Thu, 04 Dec 2003 22:47:19 +0000 |
| Subject: | Re: mail($To problem | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-22319@lists.php.net to get a copy of this message | ||
Hi Alan,
You have to set the headers to send HTML emails (that could be it!)
$header = "MIME-Version: 1.0\r\n Content-type: text/html;
charset=iso-8859-1\r\n";
$address = "john@doe.com";
$subject = "HTML Email";
$content = "<html stuff>stuff</html stuff>";
mail($address, $subject, $content, $header);
"Alan McDonald" <alan@meta.com.au> escribió en el mensaje
news:20031204100408.71228.qmail@pb1.pair.com...
> Can someone tell me why I might be getting this problem?
> I construct an HTML email and send it,... it's fine,... it goes
> But the last > character after the /html tag gets truncated.
> I always get
> </html
> stuck on the end of my message unless I add another one.
> If my last construct line is
> $content .= "</body></html>>";
> I do not see the </html on the end of the message because it has a
complete
> tag in the message.
>
> thanks
> Alan