Forum for anything hard- or software related.
Moderator: Moderators
Gen
was flattened
Posts: 126 Joined: Tue Feb 10, 2004 11:06 pm
Location: cl
Contact:
Post
by Gen » Mon Oct 18, 2004 9:46 pm
Code: Select all
<? php
$server_name = "xxx.cl";
$person_name = "Cliente";
$person_email ="yahoo@xxx.cl";
$header = "MIME-Version: 1.0\n";
$header .= "Content-Type: text/html; charset=iso-8859-1\n";
$header .="From: webmaster@$server_name\nReply-To: webmaster@$server_name\nX-Mailer: PHP/";
$_POST
$mensaje = "<font face='verdana' size='2'>
Nombre Contacto: $nombre <br>
Apellido Contacto: $apellido <br>
E-mail Contacto: $E-mail <br>
Telefono Contacto: $Telefono <br>
Fax Contacto: $Fax_Contacto <br>
Comuna: $Comuna <br>
Servicios: $Tipo_Servicio_General <br>
</font>
<br><br>";
mail("$person_email","Cotizacion","$mensaje","$header");
echo "Mensaje enviado.";
?>
I sent the cvars by method post, but the emails not print the cvars value
n99
"Sticks and Stones..."
Posts: 882 Joined: Sat Jun 05, 2004 6:41 pm
Location: nl
Post
by n99 » Tue Oct 19, 2004 3:34 am
What are you talking about anyway? Maybe you should tell us the problem, and who this problem concerns before you post completely random code.
Gore Vidal: "To succeed is not enough. Others must fail."
Den
something dur dur
Posts: 2616 Joined: Fri Jul 25, 2003 8:56 am
Location: nl
Contact:
Post
by Den » Tue Oct 19, 2004 3:40 am
n99 wrote: What are you talking about anyway? Maybe you should tell us the problem, and who this problem concerns before you post completely random code.
Problem:
Gen wrote: I sent the cvars by method post, but the emails not print the cvars value
Anyway, Gen ur code is a mess, structure isnt so good
There's a chopper coming in 3 days and there's a katana on top of the cafe and that's all you need to know
Rallu
hit the ground hard, real hard
Posts: 93 Joined: Thu Jul 31, 2003 11:36 pm
Location: fi
Contact:
Post
by Rallu » Wed Oct 20, 2004 2:27 am
this
Code: Select all
mail("$person_email","Cotizacion","$mensaje","$header");
to this
Code: Select all
mail($person_email,"Cotizacion",$mensaje,$header);
You have quotes around variables... so it sends you "$mensaje"