Add globals (replace missing twig globals) and add a method to render a mail before sending it