';
}
if ($email_is_required && (empty($email) || !preg_match('/@/', $email) || preg_match( "/[\r\n]/", $email )))
{
$errorMsg .= 'Email address
';
}
if (($comments_is_required && empty($comments)))
{
$errorMsg .= 'Comment
';
}
if (strlen( $my_recaptcha_private_key ))
{
require_once( 'recaptchalib.php' );
$resp = recaptcha_check_answer ( $my_recaptcha_private_key, $_SERVER['REMOTE_ADDR'], $_POST['recaptcha_challenge_field'], $_POST['recaptcha_response_field'] );
if (!$resp->is_valid)
{
$errorMsg .= 'Re-Captcha
';
}
}
if(strlen($errorMsg) == 0)
{
if (empty($email)) {
$email = $mailto ;
}
$fromemail = (!isset( $use_webmaster_email_for_from ) || ($use_webmaster_email_for_from == 0)) ? $email : $mailto ;
if (function_exists( 'get_magic_quotes_gpc' ) && get_magic_quotes_gpc()) {
$comments = stripslashes( $comments );
}
$messageproper =
"This message was sent from:\n" .
"$http_referrer\n" .
"------------------------------------------------------------\n" .
"Name of sender: $fullname\n" .
"Email of sender: $email\n" .
"------------------------- Question -------------------------\n\n" .
$comments .
"\n\n------------------------------------------------------------\n" ;
$headers =
"From: \"$fullname\" <$fromemail>" . $headersep . "Reply-To: \"$fullname\" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.15.0" .
$headersep . 'MIME-Version: 1.0' . $headersep . $content_type ;
if ($use_envsender) {
mail($mailto, $subject, $messageproper, $headers, $envsender );
}
else {
mail($mailto, $subject, $messageproper, $headers );
}
header( "Location: $thankyouurl" );
exit ;
}
}
?>
Home |
Sign Up |
Archives |
About |
Links |
Halachically Speaking Halachically Speaking deals with current halachic issues in a clear concise
format, along with footnotes for further in depth study. Each issue reviews a different area of contemporary halacha with an emphasis on practical
applications of the principles discussed. Significant time is spent ensuring the inclusion of all relevant shittos on each topic, as well as the
psak of Harav Yisroel Belsky, Shlita on current issues. Buy the Halachically Speaking Volume 2 sefer at |
0)
{
echo' '.$errorMsg.' |
© Copyright 2010 Halachically Speaking. All rights reserved..
Halachically Speaking is an IRS registered 501(c)3 organization. All donations are tax deductible.
This page is dedicated L"N Breindel Chana bas R' Chaim Aryeh YBL"T and in the z'chus of a refuah sh'leimah for Dov Ber ben Rivkah Rochel
Please email webmaster@thehalacha.com with any comments