300 ){ $error="yes"; $log[] = "$msg_message_len"; }; // Start forming the email $ip_address = $_SERVER['REMOTE_ADDR']; $ref = $_SERVER['HTTP_REFERER']; $time = date("F j, Y, g:i a"); $mail_from = "$in_email"; $mail_replyto = "$in_email"; $mail_headers = "From: $in_name <$mail_from>\r\n"; $mail_headers .= "Reply-to: $mail_replyto\r\n"; $mail_message = "Un visitatore del sito ha inviato un messaggio!\n\n"; $mail_message .= "Time/Date: $time\n"; $mail_message .= "IP Address: $ip_address\n"; $mail_message .= "Referer: $ref\n"; $mail_message .= "=============================================\n\n"; $mail_message .= "Email: $in_email\n"; $mail_message .= "Nome: $in_name\n"; $mail_message .= "Cognome: $in_surname\n"; $mail_message .= "Telefono: $in_telephone\n"; $mail_message .= "Messaggio: "; $mail_message .= "$in_message"; $destiny = "info@residencecavour.com"; $destinycheck = "f.testi@mclink.it"; if (!($error == "yes")){ // If there are no errors, send the email(s) if ( @mail($destiny, 'Messaggio Inviato Da RESIDENCECAVOUR.COM', $mail_message, $mail_headers) ){ $log[] = "$msg_success";@mail($destinycheck, 'Messaggio Inviato Da RESIDENCECAVOUR.COM', $mail_message, $mail_headers); }else{ $log[] = "$msg_failure"; } } } //xxxxxx if ($error == "yes"){ $number = count($log); if ( $number > 0 ) { print "
\n
"; for($i=0; $i<$number; $i++){ print "    $log[$i]
\n"; } print "

    Riprova / Try Again
";exit; } } else { print "




"; print "$log[1] \n
"; exit; } //xxxxxx } ?>
   Nome/Name:
   
   Cognome/Surname:
   
   Telefono/Phone:
   
   Email:
   
   Messaggio/Message: