Ver Mensaje Individual
  #4 (permalink)  
Antiguo 01/04/2010, 20:23
ivanber
 
Fecha de Ingreso: octubre-2008
Mensajes: 76
Antigüedad: 15 años, 6 meses
Puntos: 3
Respuesta: Problemas con el envio de mail desde pagina web remota

te ciomento te bajas la clase phpmailer la incluis ahi y le mandas los datos de tu conexion y ya sale andando espero que te sirva
Código PHP:
nclude_once('../mailing/PHPMailer/class.phpmailer.php');
$mail = new PHPMailer();
$mail->Mailer "smtp";
$mail->Host "localhost"// SMTP server
$mail->Port 26;
$mail->SMTPAuth true;
$mail->Username "";
$mail->Password "";
$mail->Ishtml true;
$mail->From '[email protected]';
$mail->FromName =  utf8_decode($HTTP_POST_VARS["nombre"]); 
$mail->AddAddress($desti);
$mail->AddBCC('xxx@xxx'); 
$mail->AddBCC('xx@xx');
$mail->AddReplyTo ($HTTP_POST_VARS["mail"], $HTTP_POST_VARS["nombre"]);

$cuerpo "Consulta xxx " $HTTP_POST_VARS["desde_pais"] . ", para el email " $para "" "<br /><br />"
$cuerpo .= "Nombre: " $HTTP_POST_VARS["nombre"] . "<br />"
$cuerpo .= "Email: " $HTTP_POST_VARS["mail"] . "<br />";
$cuerpo .= "Telefono: " $HTTP_POST_VARS["tel"] . "<br />";
$asunto .= "Asunto: " $HTTP_POST_VARS["asunto"] . "<br />";
$cuerpo .= "Mensaje: " str_replace("\r""<br />"$HTTP_POST_VARS["mensaje"]) . "<br /><br />"

    
$mail->Subjectutf8_decode("Consulta de " $_POST["nombre"] . " por " $_POST["asunto"] . "");
$mail->Bodyutf8_decode($cuerpo);
$mail->AltBody $cuerpo;
$mail->Send()