php-docs-samples/appengine/php55/mailgun at php72-scripts · wbeater/php-docs-samples · GitHub
Skip to content

Latest commit

 

History

History
 
 

Folders and files

README.md

Mailgun & Google App Engine

This sample application demonstrates how to use Mailgun with Google App Engine.

Setup

Before running this sample:

  1. You will need a Mailgun account.
  2. Update MAILGUN_DOMAIN and MAILGUN_APIKEY in index.php to match your Mailgun credentials. You can use your account's sandbox domain.

Prerequisites

  • Install composer
  • Install dependencies by running:
composer install

Deploy to App Engine

Prerequisites

Run Locally

Run the sample with dev_appserver.py:

cd /path/to/php-docs-samples/appengine/standard/mailgun
dev_appserver.py .

Now browse to http://localhost:8080 to view the sample.

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.