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