Fixes #1342: added missing layout for mail in advanced app template