Ver Mensaje Individual
  #3 (permalink)  
Antiguo 27/07/2009, 08:27
Avatar de salvador86
salvador86
 
Fecha de Ingreso: enero-2008
Ubicación: Guadalajara- Mexico
Mensajes: 467
Antigüedad: 17 años, 2 meses
Puntos: 2
Gracias Avatar810 voy a probarlo, muchas gracias por responder

Hola Avatar810, primero probe quitando los "<>", pero no me resulto despues use el CC y estuvo muy bien gracias, pero ahora no reconoce los \n el mensaje llega en una sola línea, muchas gracias, habra algo que no he visto. esto llega a ser mi código
Cita:
<?
$email_principal = '[email protected]';
$email_secundarios = '[email protected];[email protected]';
$eol="\r\n";

session_start();
error_reporting(0);
include("class/captchaZDR.php");

$capt = new captchaZDR;
$wrong_captcha = '';

if(isset($_REQUEST['Submit']) and $capt->check_result()){
$message_send = "Menssagem da página\n\n
Nome: ".$_REQUEST['Nome']." \n
E-mail: ".$_REQUEST['Email']." \n
Comentarios: ".$_REQUEST['Comentarios']." \n
Web: ".$_REQUEST['Web']." \n";

$header .= 'From: '.$_REQUEST['Nome'].'<'.$_REQUEST['Email'].'>'.$eol;
$header .= "CC: ".$email_secundarios.$eol;
$header .= "Reply-To: ".$mail."".$eol;
$header .= "Return-Path: ".$mail."".$eol; // para establecer dirección de respuesta
$header .= "Message-ID: <".time()."-".$para.">".$eol;
$header .= "X-Mailer: PHP v".phpversion().$eol; // Estas dos para ayudar a evitar los filtros de spam
$header .= "MIME-Version: 1.0".$eol;
$header .= "Content-type: text/html; charset=iso-8859-1;".$eol.$eol;

if(mail($email_principal, 'SOLICITUDE DE INFORMAÇÃO PERU EXPEDITIONS '.$_REQUEST['Web'], $message_send, $header))
header ("Location: http://www.peru-expeditions.com/p-gracias.html");
else
echo '<div style="color: red"><strong>Houve um problema no envio da menssagem. Favor enviar novamente</strong></div>';
}

else{if(isset($_REQUEST['Submit']) and (!$capt->check_result()) )
echo '<div style="color: red"><b>Tentar novamente. Atualizar:</b><a href="#" onclick="write_captcha();"><img src="gifs/refresh.gif" border="0" alt="" /></a></div>';
}
?>
Y me podrias explicar un poco mas de esta líneas
Cita:
$header .= "Reply-To: ".$mail."".$eol;
$header .= "Return-Path: ".$mail."".$eol; // these two to set reply address
$header .= "Message-ID: <".time()."-".$para.">".$eol;
$header .= "X-Mailer: PHP v".phpversion().$eol; // These two to help avoid spam-filters
$header .= "MIME-Version: 1.0".$eol;
$header .= "Content-type: text/html; charset=iso-8859-1;".$eol.$eol;
Mi duda es por que hay esta variable $para si no esta definido

Última edición por GatorV; 25/08/2009 a las 11:34