adding the mailer functionality but not totally functioning for some reason