Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/02/2011, 05:38
Avatar de aalleexx81
aalleexx81
 
Fecha de Ingreso: noviembre-2009
Mensajes: 153
Antigüedad: 14 años, 6 meses
Puntos: 0
Pregunta Respuesta: Problema función mail()

Actualmente estoy probando con la clase php-mailer. No he conseguido que funcione. Mi nuevo código es el siguiente:

Código PHP:
    $mail = new PHPMailer();
            
        
$mail->Host "server.correo.es";

        
$mail->From "[email protected]";
        
$mail->FromName "Remitente";

        
$mail->Subject "Recuperación contraseña Heracles";

        
$mail->AddAddress("[email protected]","Prueba1");

        
$body  "Hola <strong>$usuario</strong><br>";
        
$body .= ", su contraseña es : ".$row2['email']."<br>";
        
$body .= "<font color='red'>Saludos</font>";
        
$mail->Body $body;

        
$mail->Username "usuario";
        
$mail->Password "password";        

        
$mail->Send(); 
Al ejecutarse, me reporta el siguiente error:

Could not instantiate mail function

¿alguna sugerencia?

Gracias a todosde nuevo. Saludos.

Última edición por aalleexx81; 04/02/2011 a las 05:41