From the course: ASP.NET Core: Communication Management

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Set up a SendGrid development environment

Set up a SendGrid development environment - ASP.NET Core Tutorial

From the course: ASP.NET Core: Communication Management

Start my 1-month free trial

Set up a SendGrid development environment

- [Instructor] Now that you have set up the SendGrid account and you have an API key, let us set up the development environment. For that you'll first install the SendGrid NuGet package, then add the API key that you copied on the last part to the appsettings.json file. And then you are going to create an EmailService file, which we're also going to configure in the startup.cs file. By the end of this part, you'll learn how to read the API key, using the IConfiguration interface. So, let us go to Visual Studio and see this in action. Now, before you write any code in here, let us run this project and see what we have. This is a simple ASP.NET Core MVC Application. In here we have two options, the home button and the compose button. When you click the compose button, you'll get this view, where you can enter the first name, last name, subject, email, and all the other details, and click the send button to send an email,…

Contents