Fix view helper for mail class