Fixed Mailer to use with Doctrine 2