You are here: Show UTF-8 in the Subject of the mail « PHP Programming Language « IT news, forums, messages
Show UTF-8 in the Subject of the mail

Posted by kamlai on 10/30/86 11:33

I've written the following codes to include utf-8 wordings in both the
subject and the content.

$headers = "MIME-Version: 1.0\r\n".
"Content-type: text/plain; charset=utf-8\r\n".
"From: abc@abc.com";

mail("target@abc.com", "<some utf-8 wordings as subject>",
"<Another utf-8 wordings as content>", $headers);

In the email received, the content is fine , however, the subject
becomes 'strange characters'... How to solve this problem? Thanks a lot.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация