This sample application demonstrates how to use Mailjet with Google App Engine.
Before running this sample:
- You will need a Mailjet account.
- Update
MAILJET_APIKEYandMAILJET_SECRETinindex.phpto match your Mailjet credentials.
- Install
composer - Install dependencies by running:
composer installyou can run locally using PHP's built-in web server:
cd php-docs-samples/appengine/standard/mailjet
php -S localhost:8080Now you can view the app running at http://localhost:8080 in your browser.
Prerequisites
- Install the Google Cloud SDK.
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.
