t('Contact us');?>

Sorry, there was an error with the form you submitted

The error(s) detected:
"; ?>

Use the back key to go to the previous page and fix the issue!

'; } $yourname = $_POST['yourname']; // required $organization= $_POST['organization']; // required $phone= $_POST['phone']; // required $email_from = $_POST['email']; // required $comments = $_POST['comments']; // required $gdprcheck = $_POST['gdprcheck']; $foundnextcloud = $_POST['foundnextcloud']; if(!IsValidCaptcha($_POST['captcha'])) { $error_message .= 'The captcha result you entered does not appear to be correct.
'; } $email_exp = '/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,10}$/'; if(!preg_match($email_exp,$email_from)) { $error_message .= 'The email address you entered does not appear to be valid.
'; } $string_exp = "/^[A-Za-z .'-]+$/"; // remove checking name // if(!preg_match($string_exp,$yourname)) { // $error_message .= 'The name you entered does not appear to be valid.
'; // } $string_exp = "/^((\+|00)\d{1,3})?(\d+|\s+)+\d$/"; // if(!preg_match($string_exp,$phone)) { -- remove checking on phone number, it's been a pita. // $error_message .= 'The phone number you entered does not appear to be valid, did you add a country code like +49?
'; // } if(strlen($comments) < 8) { $error_message .= 'Your input is pretty short!
'; } if(!($gdprcheck=="gdprchecked")) { $error_message .= 'You did not agree with our privacy policy so we would not be allowed to read and reply to your inquiry.
'; } if(strlen($error_message) > 0) { died($error_message); } else { function clean_string($string) { $bad = array("content-type","bcc:","to:","cc:","href"); $string = str_replace($bad,"",$string); return htmlspecialchars($string); } // Prepare email text $email_message = "Form details below.\n\n"; $email_to = "sales@nextcloud.com"; $email_subject = "Website Contact Form: ".clean_string($organization); $email_message .= "Name: ".clean_string($yourname)."\n"; $email_message .= "Email: ".clean_string($email_from)."\n"; $email_message .= "Organization: ".clean_string($organization)."\n"; $email_message .= "Phone: ".clean_string($phone)."\n"; $email_message .= "How did you find out about Nextcloud? ".clean_string($foundnextcloud)."\n"; $email_message .= "Comments: ".clean_string($comments)."\n"; // create email headers $headers = 'From: no-reply@nextcloud.com'."\r\n". 'Reply-To: '.$email_from."\r\n" . 'Content-Type: text/plain; charset=UTF-8'; // store in log $data = [ 'to' => $email_to, 'subject' => $email_subject, 'message' => $email_message, 'headers' => $headers, ]; file_put_contents('/var/log/sales-leads.txt', json_encode($data) . PHP_EOL, FILE_APPEND | LOCK_EX); // Send the email to the list @mail($email_to, $email_subject, $email_message, $headers); // Send email to given address without the input $email_subject = 'Nextcloud Contact Form confirmation'; $email_message = "Thanks for reaching out to Nextcloud.\nYou will hear back shortly from our Sales Team.\n\n"; $headers = 'From: no-reply@nextcloud.com'."\r\n". 'Reply-To: '.$email_to."\r\n" . 'Content-Type: text/plain; charset=UTF-8'; // Send the email to user @mail($email_from, 'Nextcloud Contact Form', $email_message, $headers); ?>

Thank you for contacting us

We received your message and will contact you on ,

check your inbox for a reply in the next week. If you need a faster reply, please go back to the previous page and use one of the other forms to contact us for a trial or support options.