added lib_mail.php