Visualizzazione dei risultati da 1 a 2 su 2

Discussione: Invio mail PHP

  1. #1
    Utente di HTML.it
    Registrato dal
    Jan 2014
    Messaggi
    170

    Invio mail PHP

    Buongiorno,
    come posso risolvere l'errore Class 'SMTP' not found in line 1171 class.phpmailer.php?

    Codice PHP:
    include_once('class.phpmailer.php');
           
    $mail=new PHPMailer();
           
    $mail->IsSMTP(); // telling the class to use SMTP
           
    $mail->SMTPAuth   false;                  // enable SMTP authentication
           
    $mail->Host       "10.2.2.8"// sets the SMTP server
           
    $mail->Username   "";         // SMTP account username
           
    $mail->Password   "";        // SMTP account password
                    
                        
    $mail -> From="From";
                        
    $mail -> FromName="FromName";
                        
    $mail -> Subject="Oggetto";
                        
    $mail -> Body="Body";
                         
                        
    $mail -> AddBCC($email);
                         if (
    $mail -> Send()){
                             echo 
    "<p>Grazie per esserti iscritto, ti abbiamo inviato una e-mail.</p>";
                         } else {
                             echo 
    "Mailer Error: " $mail->ErrorInfo;
                         } 
    Grazie

  2. #2
    Moderatore di PHP L'avatar di Alhazred
    Registrato dal
    Oct 2003
    Messaggi
    12,448
    Assicurandoti che hai tutti i file di PHPMailer e che siano posizionati nei posti giusti.

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 © 2024 vBulletin Solutions, Inc. All rights reserved.