View Single Post

  #1 (permalink)  
Old 01-21-2004
Keru
 
Posts: n/a
Default Multiple recipients

Hi I have an mail form. I have multiple address in the form but only
the first email address gets the form mailed. What am I doing wrong.
Any help will be appreciated.
Thanks in advance.

Here is the code
$message = stripslashes($message);
mail("johndoe@domain.com,janedoe@domain.com","Onli ne
registration",$message,"From: online@domain.com<online@domain.com>");
$make=fopen("admin/data.dat","a");
$to_put="";
$to_put .= $EventID."|".$Form_Type."|".$Pin."|".$Title."|".$F irstName."|".$FamilyName."|".$Organisation."|".$Ad dress1."|".$Address1."|".$SuburbCity."|".$Country. "|".$PhoneB."|".$FaxB."|".$PhoneM."|".$Email"|".$U serDefined2."|".$UserDefined3."
";
fwrite($make,$to_put);
header("Refresh: 0;url=http://www.domain.com/thanks.htm");
Reply With Quote