Worked on mailer function and got it to go to log for staging