Page 1 of 1

problems with email sender

Posted: Mon Oct 18, 2004 9:46 pm
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

Posted: Tue Oct 19, 2004 3:34 am
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.

Posted: Tue Oct 19, 2004 3:40 am
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

Posted: Wed Oct 20, 2004 2:27 am
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"