Add json data to mailer controller