Skip to content

Latest commit

 

History

History
 
 

ExampleNet45ASPNetProject

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

The Twilio SendGrid C# .NET library provides an easy way to send emails. This example application shows how to integrate with an ASP.NET application.

Installation

Prerequisites

  • .NET version 4.5.2 and higher
  • Visual Studio 2015

Setup Environment Variables

Update the "SendGridApiKey" appSettings variable within the web.config file.

Steps

  1. Open SendGrid.ASPSamples.sln

  2. Switch to one of the example project (right-click on a project -> "Set as StartUp project")

  3. Build and run the project

    You may need to download the latest Nuget executable and run nuget.exe restore

  4. When you run the project, a web form will launch in your browser that will send an email.

Happy coding

Big thanks to paritosh baghel for contributing this example code!