Compila il modulo sottostante per rimanere informato gratuitamente ed essere il più preparato possibile per evitare i furti
// -------------------------------------------------------------------------------------------------------------------------
// INSERISCE L'UTENTE
// -------------------------------------------------------------------------------------------------------------------------
if ($_POST[spedito]) {
$_POST[nome] = addslashes($_POST[nome]);
$_POST[cognome] = addslashes($_POST[cognome]);
$_POST[citta] = addslashes($_POST[citta]);
$_POST[telefono] = addslashes($_POST[telefono]);
$_POST[email] = addslashes($_POST[email]);
$_POST[email] = trim($_POST[email]);
$_POST[nome] = htmlentities($_POST[nome], ENT_QUOTES);
$_POST[cognome] = htmlentities($_POST[cognome], ENT_QUOTES);
$_POST[citta] = htmlentities($_POST[citta], ENT_QUOTES);
$_POST[telefono] = htmlentities($_POST[telefono], ENT_QUOTES);
$_POST[email] = htmlentities($_POST[email], ENT_QUOTES);
$errore=0;
if(($_POST[citta] == "") || ($_POST[email] == "") || ($_POST[autorizzo] == "")) {
echo "";
$errore = 1;
}
if ((strstr($_POST[email],"@") === false) && (!$errore)) {
echo "";
$errore = 1;
}
if ($errore == 0) {
// INIZIO EMAIL
$subject = "Alarm System - Contattaci";
$to = "info@alarmsystem.ws";
$_POST[username] = $_POST[nome].$_POST[cognome];
$_POST[username] = str_replace(' ',"",$_POST[username]);
$_POST[nome] = stripslashes($_POST[nome]);
$_POST[cognome] = stripslashes($_POST[cognome]);
$_POST[indirizzo] = stripslashes($_POST[indirizzo]);
$_POST[citta] = stripslashes($_POST[citta]);
$_POST[telefono] = stripslashes($_POST[telefono]);
$_POST[email] = stripslashes($_POST[email]);
// INIZIO INVIO EMAIL
// costruiamo alcune intestazioni generali
$header = "From: $_POST[email]\n";
//$header .= "CC: Link \n";
$header .= "X-Mailer: Lightage Mailer 1.0\n";
// generiamo le stringhe utilizzate come separatori
$boundary = "==String_Boundary_x" .md5(time()). "x";
$boundary2 = "==String_Boundary2_y" .md5(time()). "y";
// costruiamo le intestazioni specifiche per un messaggio con parti relazionate
$header .= "MIME-Version: 1.0\n";
$header .= "Content-Type: multipart/related;\n";
$header .= " type=\"multipart/alternative\";\n";
$header .= " boundary=\"$boundary\";\n\n";
$messaggio = "Se visualizzi questo testo il tuo programma non supporta i MIME\n\n";
// il primo segmento del multipart/related e' definito come multipart/alternative
$messaggio .= "--$boundary\n";
$messaggio .= "Content-Type: multipart/alternative;\n";
$messaggio .= " boundary=\"$boundary2\";\n\n";
// sezione alternativa in puro testo
$messaggio .= "--$boundary2\n";
$messaggio .= "Content-Type: text/plain; charset=\"iso-8859-1\"\n";
$messaggio .= "Content-Transfer-Encoding: 7bit\n\n";
$messaggio .= "Messaggio alternativo in formato testo.\n\n";
// sezione alternativa in formato html
$messaggio .= "--$boundary2\n";
$messaggio .= "Content-Type: text/html; charset=\"iso-8859-1\"\n";
$messaggio .= "Content-Transfer-Encoding: 7bit\n\n";
$messaggio .= "
-
Specialisti in sicurezza
e videosorveglianza -
Specialisti in sicurezza
e videosorveglianza -
Specialisti in sicurezza
e videosorveglianza