changed mailer.php to have functions we used part