(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:
parent
8f9618833e
commit
63d2fdd8c6
1 changed files with 3 additions and 0 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue