Added app_email function to mailer