Skip to content

envergokmen/SendGrid

Repository files navigation

Send Grid and Google App Engine Flexible Environment

This sample application demonstrates how to send email with Send Grid when running in Google App Engine Flexible Environment.

Prerequisites

  1. Follow the set-up instructions in the documentation.

  2. Install the Google Cloud SDK. The Google Cloud SDK is required to deploy .NET applications to App Engine.

  3. Install the .NET Core SDK, version 2.0 or newer.

  4. Create a SendGrid account.

  5. Edit appsettings.json. Replace your-sendgrid-api-key with your sendgrid api key.

PowerShell Using PowerShell

Run Locally

PS > dotnet restore
PS > dotnet run

Deploy to App Engine

PS > dotnet restore
PS > dotnet publish
PS > gcloud beta app deploy .\bin\Debug\netcoreapp2.1\publish\app.yaml

Visual Studio Using Visual Studio 2017

Visual Studio is optional. An old, unmaintained branch of samples that work with Visual Studio 2015 is here.

Google Cloud Tools for Visual Studio make it easy to deploy to App Engine. Install them if you are running Visual Studio.

Run Locally

Open SendGrid.csproj, and Press F5.

Deploy to App Engine

  1. In Solution Explorer, right-click the SendGrid project and choose Publish SendGrid to Google Cloud.

  2. Click App Engine Flex.

  3. Click Publish.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published