ob_start(); if(session_id()=='') session_start(); $tmp = dirname(__FILE__); $tmp = str_replace('\\' ,'/',$tmp); $tmp = substr($tmp, 0, strrpos($tmp, '/')); define('SITE_DIR_PATH', $tmp); define('SITE_FS_PATH', $tmp); define('SITE_SUB_PATH', '/'); define('SITE_URL_PATH', 'http://'.$_SERVER['HTTP_HOST'].SITE_SUB_PATH); define('WEBSITEURL', 'http://www.mykonoscar.com/'); define('WEBSITE_NAME', 'Star Rent A Car'); //info@star-rentacar.gr define('ADMINMAIL', 'info@star-rentacar.gr'); define('ADMINMAIL2', 'info@mykonoscar.com'); //define('ADMINMAIL', 'antonis@mozaik.com'); //define('ADMINMAIL2', 'stelios@mozaik.com'); function send_email($fromPerson, $fromEmail, $to, $subject, $message) { $headers = "From: $fromPerson<$fromEmail> \n"; $headers .= "Reply-To: $eMail \r\n"; $headers .= "X-Mailer: PHP/". phpversion(); $headers .= "X-Priority: 3 \n"; $headers .= "MIME-version: 1.0\n"; $headers .= "Content-Type: text/html; charset=UTF-8\n"; $msg=$message; @mail($to, $subject, $msg, $headers); @mail(ADMINMAIL2, $subject, $msg, $headers); } ?>