encoding to mailer