Salve a tutti, ho un problema con questo script:
Codice PHP:
<?php
// L'INDIRIZZO DEL DESTINATARIO DELLA MAIL
$to = "clienti@sweetcream.it"; // IL SOGGETTO DELLA MAIL
$subject = "Modulo proveniente dal sito [url]www.sweetcream.it[/url]";
// COSTRUIAMO IL CORPO DEL MESSAGGIO
$body = "Contenuto del modulo:\n\n";
$body .= "Nome: " . trim(stripslashes($_POST["Nome"])) . "\n";
$body .= "Cognome: " . trim(stripslashes($_POST["cognome"])) . "\n";
$body .= "telefono: " . trim(stripslashes($_POST["telefono"])) . "\n";
$body .= "Città: " . trim(stripslashes($_POST["City"])) . "\n";
$body .= "Indirizzo: " . trim(stripslashes($_POST["Indirizzo"])) . "\n";
$body .= "Email: " . trim(stripslashes($_POST["email"])) . "\n";
$body .= "Note: " . trim(stripslashes($_POST["Note"])) . "\n";
// INTESTAZIONI SUPPLEMENTARI
$headers = "From: Modulo utenti<clienti@sweetcream.it>";
// INVIO DELLA MAIL
if(mail($to, $subject, $body, $headers)) {
// SE L'INOLTRO È ANDATO A BUON FINE...
echo "La mail è stata inoltrata con successo."; }
else {// ALTRIMENTI...
echo "Si sono verificati dei problemi nell'invio della mail."; }
?>
Il mio problema è che se provo l'invio del form con destinatario la mia email di google funziona, invece con quella del mio cliente non funziona.. Il sito del mio cliente è hostato su register.it, può essere dovuto a questo? grazie in anticipo