die "Unable to find email_address" unless defined $email_address;
if ($send) {
- # If we're sending email, then send it, optionally with a BCC.
+ # If we're sending email, then send it, optionally with a BCc.
print "Sending to $email_address" .
- ($bcc ? "\n BCC " . (ref($bcc) eq 'ARRAY' ? join(", ", @{$bcc}) : $bcc) . " " : '') .
- ($cc ? "\n cC " . (ref($cc) eq 'ARRAY' ? join(", ", @{$cc}) : $cc) . " " : '') .
+ ($bcc ? "\n BCc " . (ref($bcc) eq 'ARRAY' ? join(", ", @{$bcc}) : $bcc) . " " : '') .
+ ($cc ? "\n Cc " . (ref($cc) eq 'ARRAY' ? join(", ", @{$cc}) : $cc) . " " : '') .
($reply_to ? "\n Reply To $reply_to" : '') . "\n";
my @emails = ( $email_address );
} else {
# Say who we want to send to.
print "Want to send to: $email_address" .
- (defined $bcc ? "\n BCC " . (ref($bcc) eq 'ARRAY' ? join(", ", @{$bcc}) : $bcc) . " " : '') .
- (defined $cc ? "\n CC " . (ref($cc) eq 'ARRAY' ? join(", ", @{$cc}) : $cc) . " " : '') . "\n";
+ (defined $bcc ? "\n BCc " . (ref($bcc) eq 'ARRAY' ? join(", ", @{$bcc}) : $bcc) . " " : '') .
+ (defined $cc ? "\n Cc " . (ref($cc) eq 'ARRAY' ? join(", ", @{$cc}) : $cc) . " " : '') . "\n";
}
}