php - Creating Outlook mail with Swedish characters from UTF-8-encoded webpage -


i've got database-driven website, written in php, needs create e-mails data. data , every page encoded in utf-8, , contains plenty of swedish characters åäö. i've got following in mailto-link:

<a href="mailto:name@domain.com?body=hej!%0d%0aåäöÅÄÖ">mailto-link</a> 

and e-mail body supposed come out as

hej! åäöÅÄÖ 

this works using internet explorer 8 , firefox @ least (haven't tested in chrome or safari) outlook 2007. however, in internet explorer 7 or earlier åäö comes out weird characters. many of our clients stuck ie 6 , 7. suggestions on how make work?

i think wast number of possible browser/email client combinations out there going give endless amount of grief if try solve "mailto:" link. theoretically url-encoding should work, when i've dabbled in past figured out easier send email php in stead.

that brings other challenges though, such making sure don't make possible spammers use server email gateway (eg. use contact id numbers in stead of email addresses in form). captcha , rate limiting idea well.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -