fixed mailer for nondebug