%PDF- %PDF-
Direktori : /home/dordingu/www/antikva/wp-content/themes/mexin/php/ |
Current File : /home/dordingu/www/antikva/wp-content/themes/mexin/php/lib.php |
<?php class sendmail { public static function send($from , $to , $message, $subject) { $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n"; $headers .= "From:" . $from; if(mail($to,$subject,$message,$headers)) return true; else return false; } } function checkEmailAddress($email){ return preg_match("/^([a-zA-Z0-9])+([a-zA-Z0-9\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/",$email); } function isPostBack() { return ($_SERVER['REQUEST_METHOD'] == 'POST'); }