Lines 313-323
sub Send {
Link Here
|
313 |
$Header{Encoding} = $Self->{ConfigObject}->Get('SendmailEncodingForce'); |
313 |
$Header{Encoding} = $Self->{ConfigObject}->Get('SendmailEncodingForce'); |
314 |
} |
314 |
} |
315 |
|
315 |
|
316 |
# body encode if utf8 and base64 is used |
|
|
317 |
if ( $Header{Encoding} =~ /utf(8|-8)/i && $Header{Encoding} =~ /base64/i ) { |
318 |
$Self->{EncodeObject}->EncodeOutput( \$Param{Body} ); |
319 |
} |
320 |
|
321 |
# check and create message id |
316 |
# check and create message id |
322 |
if ( $Param{'Message-ID'} ) { |
317 |
if ( $Param{'Message-ID'} ) { |
323 |
$Header{'Message-ID'} = $Param{'Message-ID'}; |
318 |
$Header{'Message-ID'} = $Param{'Message-ID'}; |
Lines 339-345
sub Send {
Link Here
|
339 |
); |
334 |
); |
340 |
} |
335 |
} |
341 |
|
336 |
|
342 |
# build MIME::Entity |
337 |
# build MIME::Entity, Data should be bytes, not utf-8 |
|
|
338 |
# see http://bugs.otrs.org/show_bug.cgi?id=9832 |
339 |
$Self->{EncodeObject}->EncodeOutput( \$Param{Body} ); |
343 |
my $Entity = MIME::Entity->build( %Header, Data => $Param{Body} ); |
340 |
my $Entity = MIME::Entity->build( %Header, Data => $Param{Body} ); |
344 |
|
341 |
|
345 |
# set In-Reply-To and References header |
342 |
# set In-Reply-To and References header |