added basic mailer stuff