Buonasera, sto utilizzando questo codice per inviare una mail
Codice PHP:
$to = "$email";$subject = "Il Tuo Soggetto Qui";
$message = "<html><head> <title>Il Tuo Soggetto Qui</title></head><body> <p>Questo è un esempio di email inviata da PHP.</p> <table> <tr> <th>Nome</th> <th>Email</th> </tr> <tr> <td>{$first_name} {$last_name}</td> <td>{$email}</td> </tr> </table></body></html>";
$headers = "MIME-Version: 1.0" . "\r\n";$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= "From: info@google.com" . "\r\n";$headers .= "Reply-To: info@google.com" . "\r\n";$headers .= "X-Mailer: PHP/" . phpversion();
if(mail($to, $subject, $message, $headers)) { echo "Email inviata con successo a $to";} else { echo "Errore nell'invio dell'email";}
, mi dice che l'ha inviata ma non mi arriva nulla, dove sto sbagliando?