ASP.NET Core

Send Emails with Razor Templating in ASP.NET Core

In this article, let’s see how to send an email with dynamically generated email content using Razor View (.cshtml) in ASP.NET Core Final Project Structure Create View Model I’ve created the view model to be passed to the razor view in this path EmailService\EmailService.Templates\WelcomeEmail\WelcomeEmailModel.cs Create Email Template (Razor View .cshtml) Then, I created the following …

Send Emails with Razor Templating in ASP.NET Core Read More »

Convert HTML to PDF in ASP.NET Core

Generating PDF files is a common use case. Sometimes, there will be a need to send dynamically generated pdf attachments(like bank statements, invoices, and more) over email or give PDF export/download option to the users in the web portal or in the mobile app via API call. PDF can be designed & generated using popular …

Convert HTML to PDF in ASP.NET Core Read More »