Skip to content

Commit

Permalink
Support recipient addresses in CC and BCC when using Net::SMTP
Browse files Browse the repository at this point in the history
  • Loading branch information
pullingshots authored and jonjensen committed May 15, 2018
1 parent 49e899d commit 42452c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Vend/Util.pm
Expand Up @@ -2262,6 +2262,12 @@ sub send_mail {

my @to;
my @addr = split /\s*,\s*/, $to;
for(@extra_headers) {
s/\s*$/\n/;
next unless /^(Cc|Bcc):\s*(\S.+)$/mi;
#::logDebug("smtp adding receipients for $1=$2");
push @addr, split(/\s*,\s*/, $2);
}
for (@addr) {
if(/\s/) {
## Uh-oh. Try to handle
Expand Down

0 comments on commit 42452c0

Please sign in to comment.