diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-01-29 15:14:33 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-01-29 15:14:33 -0600 |
commit | e78d51a5053c8d3c0c7192c8b5cdeff5999fafd7 (patch) | |
tree | bb9269bb2664bf39959809620a6396c9ce5f285f /FS | |
parent | 5773eb8d8b4168213482a7e61aa37e0dd05c69da (diff) | |
parent | 47e0575759844079506f0823d02cc96c0e89a88a (diff) |
Merge branch 'FREESIDE_3_BRANCH' of git.freeside.biz:/home/git/freeside into FREESIDE_3_BRANCH
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/Misc.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/FS/FS/Misc.pm b/FS/FS/Misc.pm index 164f1baf4..e425c4a4b 100644 --- a/FS/FS/Misc.pm +++ b/FS/FS/Misc.pm @@ -252,12 +252,14 @@ sub send_email { $smtp_opt{'ssl'} = 1 if defined($enc) && $enc eq 'tls'; $transport = Email::Sender::Transport::SMTP->new( %smtp_opt ); } - + push @to, $options{bcc} if defined($options{bcc}); + # make sure + my @env_to = split(/\s*,\s*/, join(', ', @to)); local $@; # just in case eval { sendmail($message, { transport => $transport, from => $from, - to => \@to }) }; + to => \@env_to }) }; my $error = ''; if(ref($@) and $@->isa('Email::Sender::Failure')) { |