Hi,
how can i make this code for sending multi Bcc addresses ?
$headers .= "From: Birthday Reminder <birthday@example.com>\r\n"; $headers .= "Cc: [email]birthdayarchive@example.com[/email]\r\n"; $headers .= "Bcc: [email]birthdaycheck@example.com[/email]\r\n";
please advice
any idea ?
Use multiple Bcc lines:
$headers .= "Bcc: asdf@example.com\r\n"; $headers .= "Bcc: blah@example.com\r\n"; $headers .= "Bcc: birthdaycheck@example.com\r\n";
dumm. way 🙂
what about this code ??
$headers .= "Bcc: [email]asdf@example.com[/email] , [email]email2@test.com[/email] , [email]email3@test.org[/email] , [email]email4@test.net[/email] \r\n";
?
I tried it with commas and it sends it to the first user, then returns the others as bad format.
Sorry for late reply, I was out of town.
try seperating with ; or looking up the SENDMAIL RFC 😉 it will have the standards by which ALL sendmail type programs should comply, up to and including BCC formatting 😉