Hi
I wonder if somebody got the time and will to help with a problem that bugs many people. When I send mail to registered users from the Drupal Contact form to someone with a hotmail address, the umlaut characters get all "#¤% up.
I've searched the internet and the forums for a solution, but I'm no programmer.
Any hints would be much appreciated. How can I, let's say check if the recipients mail is a hotmail or yahoo account, and change the charset for the mail from utf-8 to iso-8859-1?
Assorted reading:
Hotmail and UTF-8, what a headache!
http://drupal.org/node/78876
Hotmail, IE and UTF-8 encoding
http://drupal.org/node/73576
Found this code in a post:
http://drupal.org/node/106837
-----------
Here is the code which I think deals with sending e-mails from drupal in modules/user.module :
<?php
function user_mail($mail, $subject, $message, $header) {
if (variable_get('smtp_library', '') && file_exists(variable_get('smtp_library', ''))) {
include_once './' . variable_get('smtp_library', '');
return user_mail_wrapper($mail, $subject, $message, $header);
}
else {
/*
** Note: if you are having problems with sending mail, or mails look wrong
** when they are received you may have to modify the str_replace to suit
** your systems.
** - \r\n will work under dos and windows.