Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/08/2013, 10:42
Avatar de bNd170
bNd170
 
Fecha de Ingreso: agosto-2009
Ubicación: $this->setLocation('Valencia', 'Spain');
Mensajes: 365
Antigüedad: 14 años, 8 meses
Puntos: 13
PHPMailer error: Could not instantiate mail function

Harto de buscar hilos en google me dispongo a pedir ayuda al foro (Ahorraos porfavor la tipica respuesta de busca en google, ya lo hice).

El caso es que con el siguiente código me devuelve el tipico error Could not instantiate mail function y no se por donde tirar ya.

He probado a lanzar la funcion mail() sin phpmailer y envía sin problemas el email a la direccion de destino.

Código PHP:
        
    $mail 
= new PHPMailer(true);
    try {
                
$mail->SetFrom($_REQUEST['email'], $_REQUEST['nombre']);
                
$mail->AddAddress('[email protected]''minombre');
                
$mail->Subject utf8_encode('Presupuesto #'.$n_presupuesto.' | '.$_REQUEST['nombre'].' '.$_REQUEST['apellidos']) . $nombre_empresa;
                
$mail->IsHTML(true);
                
$mail->CharSet 'UTF-8';
                
$mail->MsgHTML($mensaje);
                
$mail->Send();
            } catch (
phpmailerException $e) {
              echo 
$e->errorMessage();
              return 
false;
            } catch (
Exception $e) {
              echo 
$e->getMessage();
              return 
false;
            }