Disclaimer
A standard implementation of a “View In Browser” solution is not available for On-Premise releases. To create a customer-managed “View In Browser” solution with your own web servlet implementation, please follow the guidance in the following SAP Note:
2927969 - How to configure Custom 'View In Browser' in SAP Marketing