Mail () Multiple RecipientsJul 19, 2002
I'm new to PHP and trying to get my mail () function working. My problem is, when I try to send an email to multiple recipients, it sends the email only to the last email id in the list. This is the code what I wrote :
mail($ToName." <".$ToEmail.">", $ToSubject, $Message, "From: ".$FromName."
<".$FromEmail.">", "Bcc: ".$vbcc );
and the email sting that I pass through the vbcc is something like URL, URL, URL etc.
ie putting a comma between each mail ID. But what it does is sends the email only to the "to" email id and the last ID in the 'vbcc' list in this case 'email@example.com ' Could anyone tell me what am I doing wrong and how should I correct it Another thing is, is there any way I can get a return mail for the emails to which my mail was not delivered, like a bounced mail.