is_valid) { $err_captcha = "

The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA said: " . $resp->error . ")

\r\n"; $err_count++; } if (empty($_POST["nickname"])) { $err_nickname = "Please enter your nickname"; $err_count++; } else { $nickname = $_POST["nickname"]; if (!preg_match("/^[a-zA-Z ]*$/",$nickname)) { $err_nickname = "Only letters & spaces are allowed"; $err_count++; } } if (empty($_POST["email"])) { $err_email = "Please enter your email address"; $err_count++; } else { $email = $_POST["email"]; $atIndex = strrpos($email, "@"); if (is_bool($atIndex) && !$atIndex) { $err_email = "Please enter a valid email address"; $err_count++; } else { $domain = substr($email, $atIndex+1); $local = substr($email, 0, $atIndex); $localLen = strlen($local); $domainLen = strlen($domain); if ($localLen < 1 || $localLen > 64) { $err_email = "Please enter a valid email address"; $err_count++; } else if ($domainLen < 1 || $domainLen > 255) { $err_email = "Please enter a valid email address"; $err_count++; } else if ($local[0] == '.' || $local[$localLen-1] == '.') { $err_email = "Please enter a valid email address"; $err_count++; } else if (preg_match('/\\.\\./', $local)) { $err_email = "Please enter a valid email address"; $err_count++; } else if (!preg_match('/^[A-Za-z0-9\\-\\.]+$/', $domain)) { $err_email = "Please enter a valid email address"; $err_count++; } else if (preg_match('/\\.\\./', $domain)) { $err_email = "Please enter a valid email address"; $err_count++; } else if (!preg_match('/^(\\\\.|[A-Za-z0-9!#%&`_=\\/$\'*+?^{}|~.-])+$/',str_replace("\\\\","",$local))){ if (!preg_match('/^"(\\\\"|[^"])+"$/',str_replace("\\\\","",$local))){ $err_email = "Please enter a valid email address"; $err_count++; } } if ($err_email ="" && !(checkdnsrr($domain,"MX") || checkdnsrr($domain,"A"))) { $err_email = "Please enter a valid email address"; $err_count++; } } } } if ($action == "SEND" && $err_count == 0) { if ( $topic == "CS" ) { $topic = "Counter Strike:Global Offensive"; $to = 'Kuchulainn Mac Datho '; } if ( $topic == "40" ) { $topic = "Warhammer 40000"; $to = 'Kuchulainn Mac Datho '; } if ( $topic == "GN" ) { $topic = "Grandeur Nature"; $to = 'Kornelius Mac Datho '; } if ( $topic == "GE" ) { $topic = "General Inquiry"; $to = 'Kuchulainn Mac Datho '; } $message = "Nickname: " . $nickname ."
\r\n"; $message .= "Email Address: " . $email ."
\r\n"; $message .= "Topic: " . $topic ."
\r\n"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: ' . $nickname . ' <' . $email . '>' . "\r\n"; $subject = "Clan Mac Datho - " . $topic; mail($to,$subject,$message,$headers); ?>

Dear ,

Your inquiry has been recorded and will be taken care of promptly. Our team will get back to you shortly.

Kuchulainn Mac Datho
Patriarch of the Clan

Contact Form

To contact the Clan Mac Datho, please enter your Nickname and your Email Address, then select the Topic of your Inquiry. We will get back to you shortly.