Ciao Alzhared
questi sono tutti gli header che setto:
Codice PHP:
$mail->IsSMTP(); // abilitiamo l'SMTP
$mail->SMTPDebug = 2; // enables SMTP debug information (for testing)
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = 'ssl';
$mail->Host = 'smtp.gmail.com'; // sets the SMTP server
$mail->Port = 465; // set the SMTP port for the GMAIL server
$mail->Username = "mioindirizzo@gmail.com"; // SMTP account username
$mail->Password = "miapassword di gmail"; // SMTP account password
$mail->AddAddress("$email_destinatario", "$mostra_cognome $mostra_nome");
$mail->SetFrom("prenotazioni@miosito.it", "Nome Mia Azienda");
$mail->AddReplyTo("prenotazioni@miosito.it", "Nome Mia Azienda");
$mail->Subject = "Conferma Prenotazione";
$mail->AltBody = "Per vedere questa email devi utilizzare un client abilitato ad aprire le email in html";
devo aggiungere solo x-mailer? o manca qualche altro header?
Grazie