Special character on mail sending.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vanarlan
Forum Newbie
Posts: 2
Joined: Mon May 24, 2010 2:47 am

Special character on mail sending.

Post by vanarlan »

Hi All,
I create newsletter module.
I always have problem when use special character (äöüÄÖÜß) at sender name, subject or body mail when using send mail function.
Anybody know a globally optimize characters äöüÄÖÜß so can support for any mail client? (outlook, thunderbird etc).


Thanks
Gerrit
User avatar
Apollo
Forum Regular
Posts: 794
Joined: Wed Apr 30, 2008 2:34 am

Re: Special character on mail sending.

Post by Apollo »

The encoding you use for your mail content should be the same as your mail client expects (and supports).
If you dont consider the encoding, there's simply no way of assuring foreign chars will display correctly.

Unfortunately, most email clients are quite retarded when it comes to proper character encoding support. Sometimes there's no way to specify or even tell which encoding it should use.
Post Reply