Re applied Brandon's change to the email class.
Removed object to array conversion in the mailer class, added a data var to the class
Merge pull request #111 from cjemagid/3.0

Changed the email class