Fix template vars usage to be uncoupled from mandrill