Skip to content

Latest commit

 

History

History
 
 

sendgrid

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Java SendGrid Email Sample for Google App Engine Standard Environment

This sample demonstrates how to use SendGrid on Google App Engine standard environment.

See the sample application documentaion for more detailed instructions.

For more information about SendGrid, see their documentation.

Setup and deploy

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 src/main/webapp/WEB-INF/appengine-web.xml.
  3. Visit /send/email?to=YOUR-EMAIL-ADDRESS

Running locally

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]
$ mvn clean jetty:run