Skip to content

Latest commit

 

History

History
 
 

README.md

Node.js SendGrid email sample for Google App Engine

This sample application shows how to use SendGrid on Google App Engine Node.js standard environment and flexible environment.

For more information about SendGrid, see their documentation.

App Engine Node.js Flexible Environment users may also read the community tutorial Sendgrid on App Engine Tutorial for more information on how to run and deploy this sample app.

Setup

Before you can run or deploy the sample, you will need to do the following:

  1. Create a SendGrid Account. As of September 2015, Google users start with 25,000 free emails per month.
  2. Configure your SendGrid settings in the environment variables section in app.standard.yaml (if you are deploying to App Engine standard environment) or app.flexible.yaml (if you are deploying to App Engine flexible environment).

Running locally

Refer to the appengine/README.md file for instructions on running and deploying.

You can run the application locally and send emails from your local machine. You will need to set environment variables before starting your application:

export SENDGRID_API_KEY=<your-sendgrid-api-key>
export SENDGRID_SENDER=<your-sendgrid-sender-email-address>
npm start