tags:

views:

49

answers:

2

Hi

I am using php Mailing function in my project. i have sent the values in a php variable

Like

$myvalue="Universal Laser Systems®";
 $mailbody="<table><tr><td>".<?=$myvalue?>."</td></tr></table>";

But my email is showing

Univer! sal Laser Systems®

How i avoid such a special charector...........

A: 

use a mail class, like Rmail

http://www.phpguru.org/static/mime.mail.html

makes it easyer and more likely to end up in a mailbox the way you want it.

FrankBr
or use phpmailer !
Haim Evgi
Another nice mail class is [WaMailer](http://phpcodeur.net/wascripts/wamailer/). I really love it, but the documentation is in french...
Daan
+2  A: 

You need to set the email header so that it can correctly handle your special characters.

Content-Type: text/html; charset=UNICODE-1-1-UTF-8

Try that and see how you go.

You can see an example of setting the headers in the manual found here

Dan McGrath
still i have the same problrem.
Testuser