Before we start to code, we need to create a SendGrid account. We will use the trial account which is enough for our tests. Go to the SendGrid portal (https://sendgrid.com/) and click on the Try for Free button.
Fill in the required information and click on the Create Account button.
In the main page, on the left side, click on Settings, then go to the API Key section, follow the image shown here:
Then, we can click on the Create API Key button at the top-right corner. The page should look like this:
Fillin the ...