Commit c54ac7f9 authored by Clément OUDOT's avatar Clément OUDOT

Decode body and subject to avoid double encoding (#1141)

parent b938f523
......@@ -45,8 +45,8 @@ sub send_mail {
$self->lmLog( "send_mail called to send \"$subject\" to $mail", 'debug' );
# Encode the body with the given charset
$body = encode( $self->charset, $body );
$subject = encode( $self->charset, $subject );
$body = encode( $self->charset, decode( 'utf-8', $body ) );
$subject = encode( $self->charset, decode( 'utf-8', $subject ) );
# Debug messages
$self->lmLog( "SMTP From " . $self->conf->{mailFrom}, 'debug' );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment