Hi everyone,
I'm using mail() to send an email to a group of friends, but I want to bcc them rather than just list all their email addresses.
however - i notice that if i send an email that has more than just to, subject, message, I get all this email header blurb at the top of the email, which I don't want. If I leave cc/bcc/etc. off, I don't get any header rubbish.
here's my code:
$to = 'Me <me@mydomain.com>';
$subject = 'subject';
$message = 'this is my message';
$from = "From: Me <me@mydomain.com>\r\n";
$headers = $from;
$headers .= "bcc: Friend One<friendone@mates.com>,Friend Two <friendtwo@mates.co.uk>,Friend Three<friendthree@mates.com";
mail($to, $subject, $message,$headers);
Any ideas?
Cheers, G.