is_valid) { header('Location: ./error.php'); exit; } } function ValidateEmail($email) { $pattern = '/^([0-9a-z]([-.\w]*[0-9a-z])*@(([0-9a-z])+([-\w]*[0-9a-z])*\.)+[a-z]{2,6})$/i'; return preg_match($pattern, $email); } if ($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST['formid'] == 'form1') { $mailto = 'info@expressodesign.it'; $mailfrom = isset($_POST['email']) ? $_POST['email'] : $mailto; $mailbcc = 'sodwebsites@gmail.com'; $subject = 'Contact Us'; $message = 'Modulo dati expressodesign'; $success_url = './thanks.php'; $error_url = './error.php'; $error = ''; $autoresponder_from = 'Expresso Design'; $autoresponder_subject = 'Thank you for contacting us'; $autoresponder_message = 'Thank you for contacting us. We are thrilled you are interested in what we can do for you. We will process your message and get back to you as soon as possible. Please notice, if you are writing us about an item purchased on Envato (Videohive, Audiojungle, Graphic River) fill out the form on this page: http://videohive.net/user/expressodesign (lower right corner) in order to get in contact directly with our development team and speed up communication. In the meantime, get to know us better by liking us on Facebook http://www.facebook.com/expressodesigndotit following us on Twitter http://twitter.com/ExpressoDesign_/ getting in our circle on Google+ http://bit.ly/I86jZE watching our videos on http://www.youtube.com/user/ExpressoDesignAR or peeking at our pins on http://pinterest.com/expressodesign/ Talk to you soon, the Expresso Design Team http://www.expressodesign.it/ http://www.linkedin.com/company/expresso-design-srl'; $eol = "\n"; $max_filesize = isset($_POST['filesize']) ? $_POST['filesize'] * 1024 : 1024000; $boundary = md5(uniqid(time())); $header = 'From: '.$mailfrom.$eol; $header .= 'Reply-To: '.$mailfrom.$eol; $header .= 'Bcc: '.$mailbcc.$eol; $header .= 'MIME-Version: 1.0'.$eol; $header .= 'Content-Type: multipart/mixed; boundary="'.$boundary.'"'.$eol; $header .= 'X-Mailer: PHP v'.phpversion().$eol; if (!ValidateEmail($mailfrom)) { $error .= "The specified email address is invalid!\n
"; } if (!empty($error)) { $errorcode = file_get_contents($error_url); $replace = "##error##"; $errorcode = str_replace($replace, $error, $errorcode); echo $errorcode; exit; } $internalfields = array ("submit", "reset", "send", "filesize", "formid", "captcha_code", "recaptcha_challenge_field", "recaptcha_response_field"); $message .= $eol; $message .= "IP Address : "; $message .= $_SERVER['REMOTE_ADDR']; $message .= $eol; foreach ($_POST as $key => $value) { if (!in_array(strtolower($key), $internalfields)) { if (!is_array($value)) { $message .= ucwords(str_replace("_", " ", $key)) . " : " . $value . $eol; } else { $message .= ucwords(str_replace("_", " ", $key)) . " : " . implode(",", $value) . $eol; } } } $body = 'This is a multi-part message in MIME format.'.$eol.$eol; $body .= '--'.$boundary.$eol; $body .= 'Content-Type: text/plain; charset=ISO-8859-1'.$eol; $body .= 'Content-Transfer-Encoding: 8bit'.$eol; $body .= $eol.stripslashes($message).$eol; if (!empty($_FILES)) { foreach ($_FILES as $key => $value) { if ($_FILES[$key]['error'] == 0 && $_FILES[$key]['size'] <= $max_filesize) { $body .= '--'.$boundary.$eol; $body .= 'Content-Type: '.$_FILES[$key]['type'].'; name='.$_FILES[$key]['name'].$eol; $body .= 'Content-Transfer-Encoding: base64'.$eol; $body .= 'Content-Disposition: attachment; filename='.$_FILES[$key]['name'].$eol; $body .= $eol.chunk_split(base64_encode(file_get_contents($_FILES[$key]['tmp_name']))).$eol; } } } $body .= '--'.$boundary.'--'.$eol; if ($mailto != '') { mail($mailto, $subject, $body, $header); } $autoresponder_header = 'From: '.$autoresponder_from.$eol; $autoresponder_header .= 'Reply-To: '.$autoresponder_from.$eol; $autoresponder_header .= 'MIME-Version: 1.0'.$eol; $autoresponder_header .= 'Content-Type: text/plain; charset=ISO-8859-1'.$eol; $autoresponder_header .= 'Content-Transfer-Encoding: 8bit'.$eol; $autoresponder_header .= 'X-Mailer: PHP v'.phpversion().$eol; mail($mailfrom, $autoresponder_subject, $autoresponder_message, $autoresponder_header); header('Location: '.$success_url); exit; } ?> Contact Us - Expresso Design.it
Expresso Design
contact us
For more information about any of our products and services, or if you have anything you'd like to discuss, please use the form below to send us your comments.  We love to hear about new ideas.
NAME
EMAIL
surname
country
message
INSERT SECURity CODE
By sending us this contact form, your name and the information will be used in accordance with our privacy policy.
required fields
© 2015 Expresso Design.it • All rights reserved
Expresso Design is a trademark of Services on Demand S.r.l. • P.IVA / VAT 09375711000
Follow us on Twitter
Follow us on Facebook
Visit our page on Google+
Visit our page on Linkedin
Visit our channel on Youtube
Visit our channel on Vimeo
Follow us on Pinterest