Fixed mail message controller setReturnUrl() using Application instead of Request to get Uri.