summaryrefslogtreecommitdiff
path: root/lib/JWebmail/Model/WriteMails.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/JWebmail/Model/WriteMails.pm')
-rw-r--r--lib/JWebmail/Model/WriteMails.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/JWebmail/Model/WriteMails.pm b/lib/JWebmail/Model/WriteMails.pm
index f4d09e8..05c4cd1 100644
--- a/lib/JWebmail/Model/WriteMails.pm
+++ b/lib/JWebmail/Model/WriteMails.pm
@@ -29,7 +29,7 @@ sub _build_mail {
content_type => $mail->{attach_type},
encoding => 'base64',
},
- body => $mail->{attach}->asset->slurp,
+ body => $mail->{attach}->asset->slurp(),
) : undef;
my $email = Email::MIME->create(
@@ -44,7 +44,7 @@ sub _build_mail {
$email->header_str_set(CC => @{$mail->{cc}}) if $mail->{cc};
$email->header_str_set('Reply-To' => $mail->{reply}) if $mail->{reply};
- return $email->as_string;
+ return $email->as_string();
}
@@ -53,7 +53,7 @@ sub _send {
open(my $m, '|-', 'sendmail', '-i', @recipients)
or die 'Connecting to sendmail failed. Is it in your PATH?';
- $m->print($mime->as_string);
+ $m->print($mime->as_string());
close($m);
return $? >> 8;
}