E
Erica Coffin
Hello,
I'm completely stuck on this problem I've been having calling sendmail from a perl script.
I can't seem to have multiple bcc recipients. If I have one bcc recipient, the message is received by the one bcc recipient and everything is happy. If I have more than one bcc recipient, the message is sent to the To recipient only, and none of the bcc recipients receive an email.
I am posting here instead of a sendmail NG, because when I copy and paste the output of the print line (from below) everything works great. All the bcc recipients get a copy of the message.
Here is the salient portion of my script:
$sendmail = '/usr/bin/sendmail';
$from = '(e-mail address removed)';
$email = $debug ? $debug_email : $hash{'eMail'};
$subject = 'Your loan application';
$text = 'blah blah blah';
$bcc = '(e-mail address removed), (e-mail address removed), (e-mail address removed)';
open MAIL, "|$sendmail $email"
or die "Unable to start sendmail:$!\n";
print MAIL "From: $from\nBcc: $bcc\nSubject:$subject\n$text";
close MAIL;
Thanks for any help,
erica
I'm completely stuck on this problem I've been having calling sendmail from a perl script.
I can't seem to have multiple bcc recipients. If I have one bcc recipient, the message is received by the one bcc recipient and everything is happy. If I have more than one bcc recipient, the message is sent to the To recipient only, and none of the bcc recipients receive an email.
I am posting here instead of a sendmail NG, because when I copy and paste the output of the print line (from below) everything works great. All the bcc recipients get a copy of the message.
Here is the salient portion of my script:
$sendmail = '/usr/bin/sendmail';
$from = '(e-mail address removed)';
$email = $debug ? $debug_email : $hash{'eMail'};
$subject = 'Your loan application';
$text = 'blah blah blah';
$bcc = '(e-mail address removed), (e-mail address removed), (e-mail address removed)';
open MAIL, "|$sendmail $email"
or die "Unable to start sendmail:$!\n";
print MAIL "From: $from\nBcc: $bcc\nSubject:$subject\n$text";
close MAIL;
Thanks for any help,
erica