php-docs-samples/appengine/php55/mailjet at master · tmatsuo/php-docs-samples · GitHub
Skip to content

Latest commit

 

History

History
 
 

Folders and files

README.md

Mailjet & Google App Engine

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

Setup

Before running this sample:

  1. You will need a Mailjet account.
  2. Update MAILJET_APIKEY and MAILJET_SECRET in index.php to match your Mailjet credentials.

Prerequisites

  • Install composer
  • Install dependencies by running:
composer install

Run locally

you can run locally using PHP's built-in web server:

cd php-docs-samples/appengine/standard/mailjet
php -S localhost:8080

Now you can view the app running at http://localhost:8080 in your browser.

Deploy to App Engine

Prerequisites

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.