Run the following commands in the terminal:
- Run
cd ~/workspace/sendgrid-nodejs-example
- Run
cp .env.example .env
- In the
.env
file, replaceSENDGRID_USERNAME
to your Sendgrid Username - In the
.env
file, replaceSENDGRID_PASSWORD
to your Sendgrid Password - In the
.env
file, replaceTO
to your email address - Run
node sendgrid-nodejs-example.js