(bug #2995) Set a default encoding for e-mails

Just set a default encoding as utf8 if none is provided.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
Nahuel ANGELINETTI 2009-03-03 11:16:24 +01:00 committed by Galen Charlton
parent 8f9618833e
commit 63d2fdd8c6

View file

@ -766,7 +766,10 @@ sub _send_message_by_email {
);
if ($message->{'content_type'}) {
$sendmail_params{'content-type'} = $message->{'content_type'};
}else{
$sendmail_params{'content-type'} = 'text/plain; charset="UTF-8"';
}
my $success = sendmail( %sendmail_params );
if ( $success ) {