Hi,
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
mail1@mail.com, mail2@email.com, rmail@email.com 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 rmail@email.com
Could anyone tell me what 'am I doing wrong and how should I correct it
Thanks