','busi_prof'); } else if(!preg_match('/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/',$_POST['yourname'])) { $flag=0; _e('Please Enter Valid Name
','busi_prof'); } if($_POST['email']=='') { $flag=0; _e('Please Enter E-mail
','busi_prof'); } else if(!preg_match("/^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$/i",$_POST['email'])) { $flag=0; _e('Please Enter Valid E-Mail
','busi_prof'); } if($_POST['message']=='') { $flag=0; echo "Please Enter Message"; } if ( empty($_POST) || !wp_verify_nonce($_POST['busiprof_name_nonce_field'],'busiprof_name_nonce_check') ) { print 'Sorry, your nonce did not verify.'; exit; } else { if($flag==1) { $maildata =wp_mail(sanitize_email(get_option('admin_email')),trim($_POST['yourname'])." sent you a message from ".get_option("blogname"),stripslashes(trim($_POST['message']))." Message sent from:: ".trim($_POST['email']),"From: ".trim($_POST['yourname'])." <".trim($_POST['email']).">\r\nReply-To:".trim($_POST['email'])); ?>