This sample application demonstrates how to use Mailgun with Google App Engine.
Before running this sample:
- You will need a Mailgun account.
- Update
MAILGUN_DOMAINandMAILGUN_APIKEYinindex.phpto match your Mailgun credentials. You can use your account's sandbox domain.
- Install
composer - Install dependencies by running:
composer installPrerequisites
- Install the Google Cloud SDK.
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.
