PDA

View Full Version : Problems with charset in mail sent by system


Michael Christensen
12-04-2006, 04:46 PM
Hi all,
Ive got Problems with charset in mail sent by the system.

I use the UTF-8 charset because I live in Denmark vhere we use the letters Æ,Ø,Å.
The site is showeing the correct letters, but in the mails sent out by the system, is not showing correctly.
Could anyone heltp me correct this.
I think the answer is in a file.....?

Hope to hear from you all !

Sergey Ten
12-04-2006, 05:26 PM
Hi, Michael Christensen!

Please follow directives:

*** Open your classes/DirMailer.php ***
*** Find a function ***


/**
* Send email to recepient
*
* @param str $aEmail recepient email
* @param str $aSubject email subject
* @param str $aBody email body
* @param str $aFrom email FROM
* @param str $aReplyto email for REPLY
*/
function sendEmail($aEmail, $aSubject, $aBody, $aFrom, $aReplyto) {
return mail($aEmail, $aSubject, $aBody, "From: {$aFrom}\r\n"."Reply-To: {$aReplyto}\r\n");
}


*** Replace to ***


/**
* Send email to recepient
*
* @param str $aEmail recepient email
* @param str $aSubject email subject
* @param str $aBody email body
* @param str $aFrom email FROM
* @param str $aReplyto email for REPLY
*/
function sendEmail($aEmail, $aSubject, $aBody, $aFrom, $aReplyto) {
$header = "From: {$aFrom}\r\n"."Reply-To: {$aReplyto}\r\n";
$header .= "Content-Type: text/plain; charset=UTF-8\r\n";
return mail($aEmail, $aSubject, $aBody, $header);
}


*** Save change ***

Hope it will help you.