Re: mail function

From: Date: Wed, 15 Aug 2001 14:07:25 +0000
Subject: Re: mail function
Groups: php.windows 
Request: Send a blank email to php-windows+get-8876@lists.php.net to get a copy of this message
Camelia, I'm sure this has nothing to do with your problem, but I am curios: why are you setting a void function, mail() into the variable $test? what is the purpose of that? I don't even see in your code where you used $test again? Please explain... Angie Tollerson Alliance Technologies Web Programmer (515)245-7628 tollerson@alliancetechnologies.net >>> Camelia Moldovan <camelutza2000@yahoo.com> 08/15/01 08:34AM >>> $sql1="insert into alegere(ClientId,OfertaId,DomId,DomNume) VALUES ('$id','$host','$tip_dom','$numedom')"; //$sql1="insert into alegere(ClientId) VALUES ('$id')"; $rez1=mysql_query($sql1,$dblnk); $text="A aparut un nou client cu urmatoarele date de identificare."."\n"."Nume : ".$nume."\n"."Prenume: ".$prenume."\n"."Firma: ".$firma."\n"."Cod Fiscal".$codfiscal."\n"."Adresa: ".$adresa1."\n"."Mail: ".$mail."\n"."Telefon: ".$telefon."\n"."Telefon mobil: ".$telefon_mobil."\n"."Nume Domeniu :" .$numedom.$tip; $test=mail("camelutza2000@yahoo.com","client nou ",$text, "From: robot@x.ro\n" ) $sql=" select cantitate, pret_web from oferta where ofertaid='$tip_h' "; $rez=mysql_query($sql,$dblnk); $row=mysql_fetch_array($rez); $cant=$row['cantitate']; $pret=$row['pret_web']; --- Angie Tollerson <Tollerson@alliancetechnologies.net> wrote: > Camelia, We'd really have to see the script itself. > It is probably your code in some weird way because I > use mail() all the time and don't get 2 emails. > Show us your code :) > > Angie Tollerson > Alliance Technologies > Web Programmer > (515)245-7628 > tollerson@alliancetechnologies.net > > >>> Camelia Moldovan <camelutza2000@yahoo.com> > 08/15/01 07:01AM >>> > when I use mail() function in a script I receive 2 > e-mails(??). > I tried to use die() but it didn't help. > any ideeas? > > > __________________________________________________ > Do You Yahoo!? > Make international calls for as low as $.04/minute > with Yahoo! Messenger > http://phonecard.yahoo.com/ > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: > php-windows-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > > __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#8876) next »