Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 691 Bytes

File metadata and controls

20 lines (15 loc) · 691 Bytes

Example code to use with Sendgrid PHP NG

This is a simple example of how to write code to use the Sendgrid PHP NG library.

Requirements

  • Composer
  • SendGrid Account
  • SendGrid API Key
  • PHP 5.5 or greater

Usage

Copy the example config file to a live config file.

cp example.config.php config.php

Edit the new file config.php and change the variables $sendgrid_api_key and $to to your settings.

Execute the PHP script either via a web server or using PHP CLI.