Re: mail($To problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
20031204100408.71228.qmail@pb1.pair.com">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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux