tlacuilosound
Bovino Milenario
- Desde
- 8 Feb 2008
- Mensajes
- 1.085
- Tema Autor
- #1
Que tal bakunos, pues veran, tengo una duda muy canija con un codigo para enviar un correo cada que alguien se suscribe en mi pag web, me aparece unos errores muy raros
Warning: mail() [function.mail]: SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server. in C:\Inetpub\vhosts\travelluxuryresorts.com\httpdocs\travel\sender.php on line 22
Warning: mail() [function.mail]: SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server. in C:\Inetpub\vhosts\travelluxuryresorts.com\httpdocs\travel\sender.php on line 24
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\travelluxuryresorts.com\httpdocs\travel\sender.php:22) in C:\Inetpub\vhosts\travelluxuryresorts.com\httpdocs\travel\sender.php on line 25
Y la verdad no se que pude escribir mal, todo consiste en que el formulario envia los datos a un programa sender y este manda un correo para el usuario y otro al administrador. este es el codigo que escribi en el archivo sender .php
<?
$name=$_POST["txtname"];
$phone=$_POST["txtphone"];
$mail=$_POST["txtmail"];
$movil=$_POST["txtmovil"];
$state=$_POST["txtstate"];
$comments=$_POST["txtcomments"];
$paracliente=file_get_contents("tocustomer.html");
$paracliente=str_replace("<nombre>",$name,$paracliente);
$paraadmon=file_get_contents("toadmon.html");
$paraadmon=str_replace("<nombre>",$name,$paraadmon);
$paraadmon=str_replace("<tel>",$phone,$paraadmon);
$paraadmon=str_replace("<mail>",$mail,$paraadmon);
$paraadmon=str_replace("<movil>",$movil,$paraadmon);
$paraadmon=str_replace("<estado>",$state,$paraadmon);
$paraadmon=str_replace("<coment>",$comments,$paraadmon);
$headers="MIME-Version: 1.0\r\n";
$headers.="Content-type: text/html;charset=iso-8859-1\r\n";
$headers.="From:Travel Luxury Resorts <[email protected]>\r\n";
$headers.="Reply-To:[email protected]\r\n";
$headers.="Return-path:[email protected]\r\n";
mail("$mail","Gracias por su Visita",$paracliente,$headers);
sleep(2);
mail("[email protected]","Captura pagina web",$paraadmon,$headers);
header("location:compra.php");
?>
:eolo:como ven? onde la regue?
Warning: mail() [function.mail]: SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server. in C:\Inetpub\vhosts\travelluxuryresorts.com\httpdocs\travel\sender.php on line 22
Warning: mail() [function.mail]: SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server. in C:\Inetpub\vhosts\travelluxuryresorts.com\httpdocs\travel\sender.php on line 24
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\travelluxuryresorts.com\httpdocs\travel\sender.php:22) in C:\Inetpub\vhosts\travelluxuryresorts.com\httpdocs\travel\sender.php on line 25
Y la verdad no se que pude escribir mal, todo consiste en que el formulario envia los datos a un programa sender y este manda un correo para el usuario y otro al administrador. este es el codigo que escribi en el archivo sender .php
<?
$name=$_POST["txtname"];
$phone=$_POST["txtphone"];
$mail=$_POST["txtmail"];
$movil=$_POST["txtmovil"];
$state=$_POST["txtstate"];
$comments=$_POST["txtcomments"];
$paracliente=file_get_contents("tocustomer.html");
$paracliente=str_replace("<nombre>",$name,$paracliente);
$paraadmon=file_get_contents("toadmon.html");
$paraadmon=str_replace("<nombre>",$name,$paraadmon);
$paraadmon=str_replace("<tel>",$phone,$paraadmon);
$paraadmon=str_replace("<mail>",$mail,$paraadmon);
$paraadmon=str_replace("<movil>",$movil,$paraadmon);
$paraadmon=str_replace("<estado>",$state,$paraadmon);
$paraadmon=str_replace("<coment>",$comments,$paraadmon);
$headers="MIME-Version: 1.0\r\n";
$headers.="Content-type: text/html;charset=iso-8859-1\r\n";
$headers.="From:Travel Luxury Resorts <[email protected]>\r\n";
$headers.="Reply-To:[email protected]\r\n";
$headers.="Return-path:[email protected]\r\n";
mail("$mail","Gracias por su Visita",$paracliente,$headers);
sleep(2);
mail("[email protected]","Captura pagina web",$paraadmon,$headers);
header("location:compra.php");
?>
:eolo:como ven? onde la regue?