cleaned up some of the mailer code and added a comment stating the need for a loop