I have filled in the bcc: field but it never sends the mail. I then tried to add a second recipient to see if that worked but it only sends to the first emaill address in the list. Listed below is a code fragment from the script. $to and $bcc hold the email addresses.
$bcc - the email address for this actually appears in the message body, suggesting that sendmail is not recognising Bcc: as header information. If two address are input for the To: field then when I get the email both are shown as recipients but only the first email is actually sent.
open (SENDMAIL, "¦ $sendmailpath -t");
print SENDMAIL "Subject: Order confirmation\n";
print SENDMAIL "To: $to\n";
print SENDMAIL "Bcc: $bcc\n";
print SENDMAIL "From: orders\@mydomain.co.uk\n";
print SENDMAIL "Dear ";
print SENDMAIL "$name \n\n";
.........
Anyone seen this before or know where I am going wrong?
Thanks in advance for any help
Kind Regards
Tony Hyams