From the course: ASP.NET Core: Communication Management

Set up a SendGrid account - ASP.NET Core Tutorial

From the course: ASP.NET Core: Communication Management

Start my 1-month free trial

Set up a SendGrid account

- [Elvis] Throughout this course, you are going to use SendGrid. For that, you need to set up a SendGrid account. So you'll first create an account by navigating to sendgrid.com, then have an overview of the SendGrid dashboard and for you to be able to send emails from your account, you need to verify a sender account. And by the end of these part, you'll retrieve an API key that you are going to use throughout this course. So let us go to sendgrid.com and see this in action. So in here, go to sendgrid.com, then go to start for free. Here we're going to create an account. So you need to provide an email address. My email address will be no-reply@dotnethow.net. I'll provide a password, then just check the checkbox. (mouse clicks) You might not get the same security step in here, but just in case you get it, you need to pass that step. Then accept the terms and create an account. Here now, let us provide all the data. So I'll just type in here my first name, my last name. Here I'll just type a name. Then you need to provide the phone number. It's optional. Choose a role. I'll just choose like the first ones. It's not important really. So then get started. So now that you created an account, you can see in here that you get a welcome message here on the left, you have all the options, like, the dashboard, the email API section, the marketing, design library, stats. Here on the stats, you can see like everything related to your emails, like, for example, how many emails were opened, how many were reported as spam, et cetera. Now we are not going to use all these features throughout this course, but we are going to use some of them. Then you have the activity, where you can check everything. Also, you have the suppressions and here you have the settings, where you can set up the API keys. But for you to be able to set out emails from your SendGrid account, you need to create a sender identity. So let us create a sender identity. Create, then scroll down here. Click the verify a single sender. Here sender will be, let's see, Elvis Trupia. Email address will be no-reply@dotnethow.net. The reply email will be the same. The company address, just an address sample. It's not important. I'll just choose a city in here. So a city name name. Let's say, I'll choose just like the first state, country, just any country. Let me select in here United States. Nickname will be dotnethow and then click the create button. So you created the single sender. Now you need to verify the single sender. For that you need to go to your inbox in your email that you provided in here. So in here you have an email. This is the first email that you received. The welcome email, where you need to confirm your email address. So display images, which is just the SendGrid logo. Confirm email address. So it was confirmed. Now let us go back in here 'cause we have another email and that's for verifying the single sender. So click in here and click the verify single sender. So this was verified, now just go to return to single sender verification. And here you can see that we have a verified single sender. Now for us to be able to connect the SendGrid account to our ASP.NET Core MVC application, because we are going to use an ASP.NET Core MVC application throughout this course to set out emails and to check the email statuses, go to settings. And in here, go to API keys. Here then click the create API key button. Now in here, you have three options. The first one is full access, restricted access, and you can check the descriptions in here, and the last one is the billing access. Now I'll just use the full access because it has everything we need throughout this course. You need to provide an API key name. So I'll just name this communication. So communication-management-API-key, and then click the create and view button. Now, once you click done, you will not be able to copy the whole key. So I recommend to just click over here. So the key is copied and then store these key anywhere you want, so you can use it for the next part. Here I'll just start this in the notepad. Now let's go back to SendGrid. In here, click the done button, and that's all we need to do in here. Now, if you want, you can always come in here and create other API keys. So like, create API key, select in here the permissions, so like full access or whatever. And then provide a name, create and view edited.

Contents