//============== //CONFIGURATION //============== //IMPORTANT!! //Put in your email address below: //$to = 'scottfrost@speakusaenglish.com'; $to = 'gonzalo.cailliat@gmail.com'; //User info (DO NOT EDIT!) $FirstName = stripslashes($_POST['FirstName']); //sender's name $email = stripslashes($_POST['email']); //sender's email $LastName = stripslashes($_POST['LastName']); //sender's website //The subject $subject = "[Web Site Contact Form] "; //The default subject. Will appear by default in all messages. Change this if you want. $subject .= stripslashes($_POST['LastName']); // the subject //The message you will receive in your mailbox //Each parts are commented to help you understand what it does exaclty. //YOU DON'T NEED TO EDIT IT BELOW BUT IF YOU DO, DO IT WITH CAUTION! ////$msg = "From : $FirstName $LastName \r\n"; //add sender's name to the message ////$msg .= "e-Mail : $email \r\n"; //add sender's email to the message //$msg .= "Website : $website \r\n"; //add sender's website to the message //$msg .= "Subject : $subject \r\n\n"; //add subject to the message (optional! It will be displayed in the header anyway) ////$msg .= "---Message--- \r\n".stripslashes($_POST['message'])."\r\n\n"; //the message itself $msg = "---Message--- \r\n".stripslashes($_POST['message'])."\r\n\n"; //the message itself //Extras: User info (Optional!) //Delete this part if you don't need it //Display user information such as Ip address and browsers information... /* $msg .= "---User information--- \r\n"; //Title $msg .= "User IP : ".$_SERVER["REMOTE_ADDR"]."\r\n"; //Sender's IP $msg .= "Browser info : ".$_SERVER["HTTP_USER_AGENT"]."\r\n"; //User agent $msg .= "User come from : ".$_SERVER["HTTP_REFERER"]; //Referrer */ // END Extras /* $myconn = mysql_connect('localhost','uh01112_sc1138','UsEn2010'); if (! $myconn){ echo "Error al intentar conectarse con el servidor"; die(); } if (! mysql_select_db("uh01112_speaksystem",$myconn)){ echo "No se pudo conectar correctamente con la Base de datos"; die(); } //$sql = "SELECT * FROM mailform where IDDOM='$quienes'"; $thedate=date('Y-m-d H-m-s'); $sql="INSERT INTO mailform (id,firstname,lastname,email,message,date) values ('','$FirstName','$LastName','$email','$msg','$thedate')"; $res = mysql_query($sql,$myconn); //$r = mysql_fetch_assoc($res); */ ?>
Please fill out the form below.