fix mailer when sending txt + attachment