bleustreak12 Posted November 25, 2009 Share Posted November 25, 2009 I have created a form which accepts values from a user who is browsing my site and sends this data collected by email to me. Now the problem is the site's in danish .and when someone writes text in danish i receive it an odd format by email this is not so if the form is filled in normal english text. How can i make my form so that it receives text in danish and is able to send it to me without changing and keeping it as it is. ? I would even like to make my form flexible enough so that it can receive text in other languages also how can i achieve this also? Link to comment https://forums.phpfreaks.com/topic/182879-php-form-not-sending-data-by-email-in-danish-language/ Share on other sites More sharing options...
Goldeneye Posted November 25, 2009 Share Posted November 25, 2009 Add this to your headers parameter in mail() before the "To:" and "From:" Content-type: text/html; charset=UTF-8 Link to comment https://forums.phpfreaks.com/topic/182879-php-form-not-sending-data-by-email-in-danish-language/#findComment-965280 Share on other sites More sharing options...
bleustreak12 Posted November 25, 2009 Author Share Posted November 25, 2009 should it be like this $headers = 'Content-type: text/html; charset=UTF-8'."From:$email" ; Link to comment https://forums.phpfreaks.com/topic/182879-php-form-not-sending-data-by-email-in-danish-language/#findComment-965307 Share on other sites More sharing options...
bleustreak12 Posted November 25, 2009 Author Share Posted November 25, 2009 I am not able to get it right still has anybody implemented it or seen a tutorial for this Link to comment https://forums.phpfreaks.com/topic/182879-php-form-not-sending-data-by-email-in-danish-language/#findComment-965365 Share on other sites More sharing options...
cags Posted November 25, 2009 Share Posted November 25, 2009 Headers must be on seperate lines... $headers = "Content-type: text/html; charset=UTF-8\r\n"."From:$email" ; Link to comment https://forums.phpfreaks.com/topic/182879-php-form-not-sending-data-by-email-in-danish-language/#findComment-965408 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.