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

Just set a default encoding as utf8 if none is provided.
This commit is contained in:
Nahuel ANGELINETTI 2009-03-03 11:16:24 +01:00 committed by Henri-Damien LAURENT
parent d6458e188c
commit 7a50c0fb2d
1 changed files with 3 additions and 0 deletions

View File

@ -757,7 +757,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 ) {