Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/02/2008, 09:44
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 20 años, 5 meses
Puntos: 2135
Re: Mail Sin Funcion Mail()

Usa la clase PHPMailer:
Código PHP:
require("class.phpmailer.php");

$mail = new PHPMailer();

$mail->From     = "[email protected]";
$mail->FromName = "List manager";
$mail->Host     = "smtp1.site.com;smtp2.site.com";
$mail->Mailer   = "smtp";

$body  = "Hello <font size=\"4\">Person</font>, <p>";

$text_body  = "Hello Person, \n\n";
$mail->Body    = $body;
$mail->AltBody = $text_body;
$mail->AddAddress("[email protected]");
if(!
$mail->Send())
    echo 
"There has been a mail error sending to [email protected]<br>"; 
Esta clase se comunica vía Sockets con el server SMTP que le especifiques, por lo que no necesita de la función mail.

Saludos.