Mail with special characters

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
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Mail with special characters

Post by Shendemiar »

Mail headers seems too complicated for me.

If i want to send mail with ä's and ö's in it what headers do i need to set up.

html codes if you can't see what i mean.
ä = ä
ö = ö

This doesn't work, but it must be something similiar?

Code: Select all

$headers=   "";
$headers .= "FROM: <No-Reply@something.Fi> \n";
$headers .= "MIME-Version: 1.0 \n";
$headers .= "Content-Type: TEXT/PLAIN; charset=ISO-8859-1 \n";
$headers .= "Content-Transfer-Encoding: 8BIT \n";
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

Try UTF-8 as the charset.
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Post by Shendemiar »

Noup. I still get

YleisXkysymys HYLXTTY

While it should be

Yleisökysymys HYLÄTTY
Post Reply