Visualizzazione dei risultati da 1 a 3 su 3
  1. #1
    Utente di HTML.it L'avatar di agenti
    Registrato dal
    Feb 2002
    Messaggi
    2,427

    phpmailer errore autenticazione

    Warning: smtpsend(class.smtp.php) [function.smtpsend]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\sito\httpdocs\inc\class.phpmaile r.php on line 513

    Warning: smtpsend() [function.include]: Failed opening 'class.smtp.php' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\sito\httpdocs\inc\class.phpmaile r.php on line 513

    Fatal error: Cannot instantiate non-existent class: smtp in C:\Inetpub\vhosts\sito\httpdocs\inc\class.phpmaile r.php on line 581

    lo script che uso è:


    include_once('inc/class.phpmailer.php');

    $mail = new PHPMailer();
    $mail->IsSMTP(); // attiva l'invio tramiteSMTP
    $mail->Host = "localhost"; // indirizzo smtp
    $mail->From = "noreply@miaemail.it;
    $mail->FromName = "Nome Cognome";
    $mail->Subject = "Il terzo email con PHPmailer";
    $mail->AddAddress("email@miaemail.it");
    $html_body = "test";
    $mail->MsgHTML($html_body);

    if($mail->Send())
    {
    echo 'mail inviato correttamente';
    }
    else
    {
    echo 'Errore: mail non inviato';
    }
    2000 post e sono più vecchio di 4 anni...
    grazie a tutti....

  2. #2
    Non si tratta di un errore di autenticazione.

    Nella cartella inc manca il file class.smtp.php

  3. #3
    Utente di HTML.it L'avatar di agenti
    Registrato dal
    Feb 2002
    Messaggi
    2,427
    Si, grazie mille.
    2000 post e sono più vecchio di 4 anni...
    grazie a tutti....

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.