problems with email sender

Forum for anything hard- or software related.

Moderator: Moderators

Post Reply
Gen
was flattened
Posts: 126
Joined: Tue Feb 10, 2004 11:06 pm
Location: cl
Contact:

problems with email sender

Post by Gen »

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
Image
n99
"Sticks and Stones..."
Posts: 882
Joined: Sat Jun 05, 2004 6:41 pm
Location: nl

Post by n99 »

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 »

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 :P
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
Image
Rallu
hit the ground hard, real hard
Posts: 93
Joined: Thu Jul 31, 2003 11:36 pm
Location: fi
Contact:

Post by Rallu »

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"
Post Reply