\n"; } elseif ( array_key_exists('from', $HTTP_POST_VARS) and !preg_match("/^[0-9a-zA-Z\.\-\_]+\@([0-9a-zA-Z\-]+\.)+[a-zA-Z]{2,4}$/", $HTTP_POST_VARS['from']) ) { print "\n"; } elseif ( array_key_exists('from', $HTTP_POST_VARS) and array_key_exists('to', $HTTP_POST_VARS) ) { print "\n"; SendMail($HTTP_POST_VARS['to'], $HTTP_POST_VARS['from'], "Check out this site!", $HTTP_POST_VARS['message']); } ?>  
You must enter a valid email address in the 'To' field
You must enter a valid email address in the 'From' field
E-mail Sent to ".$HTTP_POST_VARS['to']."!"."
To:
From:
Message: