Strange characters in PHP mail()

the mail() function

Moderators: egami, macek, gesf

Post Reply
TheProdigyGuy
New php-forum User
New php-forum User
Posts: 215
Joined: Wed Dec 07, 2011 5:25 pm

Thu Jan 19, 2012 1:48 pm

Hello Iver.
If i understand correctly it is UTF8 characters Yeah?

Then i think solution to specify additional headers properly:
In ex:

Code: Select all

$header= 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/plain; charset=UTF-8' . PHP_EOL; 
$header.='Reply to: etc etc more stuff goes here' .PHP_EOL;
then:
@mail($to,$subject,$bodyofmail,$header);


After all this I think it should handle correctly that characters.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests