Make sure there is not space in base64 value of the subject (#335)
This commit is contained in:
parent
4be4780917
commit
93d92e5577
@ -55,7 +55,9 @@ sub send_mail {
|
|||||||
if $self->{mailReplyTo};
|
if $self->{mailReplyTo};
|
||||||
|
|
||||||
# Encode the subject
|
# Encode the subject
|
||||||
$subject = "=?$charset?B?" . encode_base64($subject) . "?=";
|
$subject = encode_base64($subject);
|
||||||
|
$subject =~ s/\s//g;
|
||||||
|
$subject = "=?$charset?B?" . $subject . "?=";
|
||||||
|
|
||||||
# Detect included images (cid)
|
# Detect included images (cid)
|
||||||
my %cid = ( $body =~ m/"cid:([^:]+):([^"]+)"/g );
|
my %cid = ( $body =~ m/"cid:([^:]+):([^"]+)"/g );
|
||||||
|
Loading…
Reference in New Issue
Block a user