This sample application demonstrates how to use Sendgrid with Google App Engine Standard Environment.
Before running this sample:
- You will need a SendGrid account.
- Update
SENDGRID_SENDERandSENDGRID_API_KEYinapp.yamlto match your SendGrid credentials. You can use your account's sandbox domain.
- Install
composer - Install dependencies by running:
composer installPrerequisites
- Install the Google Cloud SDK.
Run Locally
export SENDGRID_APIKEY=your-sendgrid-api-key
export SENDGRID_SENDER=somebody@yourdomain.com
php -S localhost:8000 -t .Deploy with gcloud
gcloud config set project YOUR_PROJECT_ID
gcloud app deploy
gcloud app browse
The last command will open https://{YOUR_PROJECT_ID}.appspot.com/
in your browser.
