added mailer def after end in production