if(isset($submit)) { if(!eregi("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+[a-zA-Z0-9\-\.]+$",$mail)) { $errormsg ="Sorry! your e-mail is incorrect."; } else { $msg= "From : ".$name."\n\nE-mail : ".$mail."\n\n\n".$msg; $flag= mail("info@fscc.or.th, tunaja@hotmail.com",$subject,$msg,"From: $mail"); if($flag) $errormsg="Thank you! your message have been send already"; else $errormsg="Sorry! sending mail failed. Please try again"; } } ?>
|