Introduction
This article will walk you through the creation of an ASP.NET Core MVC web application with C# language. It will also cover sending an email using the SendGrid Email Service.

Photo by Austin Distel on Unsplash
In a modern web application, email notification or verification has now become a major and important part of the application. Using email service, we can ensure application user registration, password reset, mobile number verification, etc. This helps the verification process go smoothly, quickly, and securely. Newsletters, Promotion, and Shipping Notifications tasks can also be completed with email service as well. Therefore in any application, we can make sure to use email service.
In this article, I will explain how to send an email from the ASP.NET Core MVC web application using the Sendgrid email service. I will write a Sendgrid email service as well to show how to send an email using C# language and the Sendgrid Nuget package manager.
Prerequisites
Good knowledge of C# language, ASP.NET Core MVC application, and .NET CLI.
Background
Let’s move to this demonstration and create an ASP.NET Core MVC web application. Before moving to the practical demonstration, let’s understand the objective of this demonstration which tells what exactly will be covered in this article. Here is the objective as follows,
- Create a SendGrid account
- Get an API key from the created SendGrid account
- Create a project
- Code implementation
- Conclusion
Create a SendGrid account
Sendgrid is a cloud-based email service that ensures reliable email delivery, scalability, and real-time service analysis using the SendGrid application dashboard. SendGrid API helps in delivering your important emails over SMPT or HTTP.
You can create a free account from the Sendgrid website.

After successfully creating the SendGrid account, you can create the SendGrid email service API key which is required in the application implementation.
SendGrid Dashboard
Create or get an API Key from here.





Sundaram SubramanianPosted Nov 13, 2019, 10:16 PM
Does this really require a real-time project ?. Since we can right SMTP code for sending mail !. Correct to understand this more !!.