diff options
Diffstat (limited to 'lib/JWebmail/Model')
-rw-r--r-- | lib/JWebmail/Model/WriteMails.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/JWebmail/Model/WriteMails.pm b/lib/JWebmail/Model/WriteMails.pm index aa2f1d4..7a50bcb 100644 --- a/lib/JWebmail/Model/WriteMails.pm +++ b/lib/JWebmail/Model/WriteMails.pm @@ -69,8 +69,10 @@ sub sendmail { push @recipients, @{ $mail->{cc} } if $mail->{cc}; push @recipients, @{ $mail->{bcc} } if $mail->{bcc}; - say $mime if $Block_Writes; - return 1 if $Block_Writes; + if ($Block_Writes) { + say $mime; + return 1; + } return _send($mime, @recipients); } |