mi da un errore sarebbe che non mi fa inviare l email
Codice PHP:$mail = new PHPMailer(); // Create a PHPMailer object
$mail->IsSMTP(); // set mailer to use SMTP
$mail->Host = SMTP_HOST; // specify main and backup server
$mail->Port = SMTP_PORT;
$mail->SMTPAuth = false; // turn on SMTP authentication
//$mail->SMTPAuth = SMTP_AUTH; // turn on SMTP authentication
$mail->Username = SMTP_USERNAME; // SMTP username
$mail->Password = SMTP_PASSWORD; // SMTP password
$mail->From = "$email"; // Sender
$mail->FromName = "$email"; // Sender name
//$mail->SetLanguage('it',PHP_MAILER_DIR.'language/');
$mail->WordWrap = 50; // set word wrap
$mail->IsHTML(true); // set email format to HTML
$mail->Subject = "Registration Pending for $nome Support Desk";
$mail->Body = "Registration Pending for $nome Support Desk";
if(!$mail->Send()) {
echo "Si è verificato un errore nell'invio della mail";
exit;
}

Rispondi quotando