fix mailer for rails 3