Hi Savut
Thanks a ton for that example. It works great now.
Regards
Keru
"Savut" <webki@hotmail.com> wrote in message news:<JmaQb.19576$U77.1592293@news20.bellglobal.co m>...
> $message = stripslashes($message);
> $email = array("joe@tata.com", "toto@titi.com", "blabla@coco.com");
> for($i=0;$i<count($email);$i++) {
> mail("$email[$i]","Online registration",$message,"From:
> online@domain.com<online@domain.com>");
> }
>
> $make=fopen("admin/data.dat","a");
> $to_put="";
> $to_put
> .=$EventID."|".$Form_Type."|".$Pin."|".$Title."|". $FirstName."|".$FamilyName
> ."|".$Organisation."|".$Address1."|".$Address1."|" .$SuburbCity."|".$Country.
> "|".$PhoneB."|".$FaxB."|".$PhoneM."|".$Email"|".$U serDefined2."|".$UserDefin
> ed3."";
> fwrite($make, $to_put);
>
> header("Refresh: 0;url=http://www.domain.com/thanks.htm");
>
> Savut
>
> "Keru" <arian@rocketmail.com> wrote in message
> news:b21774b9.0401220414.138b6e2e@posting.google.c om...
> > Thank you for the response.
> > Could you please give me an example.
> >
> > "Michel" <please_no@spam.nl> wrote in message
> news:<bultai$469$1@news.cistron.nl>...
> > > Put the recips in an array and loop your script through.
> > >
> > > M
> > >
> > > "Keru" <arian@rocketmail.com> wrote in message
> > > news:b21774b9.0401210437.2ca80f6d@posting.google.c om...
> > > > 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."|".$Address1."|".$Address1."|".$S uburbCity."|".$Country."|
> > >
> ".$PhoneB."|".$FaxB."|".$PhoneM."|".$Email"|".$Use rDefined2."|".$UserDefined
> > > 3."
> > > > ";
> > > > fwrite($make,$to_put);
> > > > header("Refresh: 0;url=http://www.domain.com/thanks.htm");