2017 © Pedro Peláez
 

library smtpapi

Build SendGrid X-SMTPAPI headers in PHP.

image

sendgrid/smtpapi

Build SendGrid X-SMTPAPI headers in PHP.

  • Monday, April 2, 2018
  • by eddiezane
  • Repository
  • 170 Watchers
  • 49 Stars
  • 2,491,911 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 53 Forks
  • 13 Open issues
  • 12 Versions
  • 6 % Grown

The README.md

Twilio SendGrid Logo, (*1)

BuildStatus Latest Stable Version Latest Version on Packagist Twitter Follow GitHub contributors MIT licensed, (*2)

This module helps build Twilio SendGrid's SMTP API headers., (*3)

Learn more about the SMTP API at Twilio SendGrid's documentation., (*4)

, (*5)

Announcements

All the updates to this module are documented in our CHANGELOG., (*6)

Table of Contents

, (*7)

Installation

Prerequisites

  • PHP version 7.3, 7.4, 8.0, or 8.1
  • The Twilio SendGrid service, starting at the free level

Install with Composer

The following recommended installation requires composer., (*8)

Add the following to your composer.json file., (*9)

{
    "require": {
        "sendgrid/smtpapi": "^0.7.0"
    }
}

Then at the top of your script require the autoloader:, (*10)

require 'vendor/autoload.php';

Alternative: Install package from zip

If you are not using Composer, simply download and install the latest packaged release of the library as a zip., (*11)

⬇︎ Download Packaged Library ⬇︎, (*12)

Then require the library from package:, (*13)

require('path/to/smtpapi-php/smtpapi-php.php');

The previous versions of the library can be downloaded directly from GitHub., (*14)

Setup Environment Variables

Environment Variable

Update the development environment with your SENDGRID_API_KEY, for example:, (*15)

echo "export SENDGRID_API_KEY='YOUR_API_KEY'" > sendgrid.env
echo "sendgrid.env" >> .gitignore
source ./sendgrid.env

, (*16)

Quick Start

$header = new Smtpapi\Header();
$header->addTo('test1@example.com');
$header->addTo('test2@example.com');
print $header->jsonString();

, (*17)

Usage

, (*18)

How to Contribute

We encourage contributions to our projects; please see our CONTRIBUTING guide for details., (*19)

Quick links:, (*20)

, (*21)

About

smtpapi-php is maintained and funded by Twilio SendGrid, Inc. The names and logos for smtpapi-php are trademarks of Twilio SendGrid, Inc., (*22)

, (*23)

Support

If you need help using SendGrid, please check the Twilio SendGrid Support Help Center., (*24)

, (*25)

License

The MIT License (MIT), (*26)

The Versions

02/04 2018

dev-master

9999999-dev http://github.com/sendgrid/smtpapi-php

Build SendGrid X-SMTPAPI headers in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

api email grid sendgrid smtp send smtpapi xsmtp x-smtp

07/07 2017

0.6.1

0.6.1.0 http://github.com/sendgrid/smtpapi-php

Build SendGrid X-SMTPAPI headers in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

api email grid sendgrid smtp send smtpapi xsmtp x-smtp

05/07 2017

0.6.0

0.6.0.0 http://github.com/sendgrid/smtpapi-php

Build SendGrid X-SMTPAPI headers in PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

api email grid sendgrid smtp send smtpapi xsmtp x-smtp

28/03 2017

dev-mbernier-patch-1

dev-mbernier-patch-1 http://github.com/sendgrid/smtpapi-php

Build SendGrid X-SMTPAPI headers in PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

api email grid sendgrid smtp send smtpapi xsmtp x-smtp

10/03 2017

dev-thinkingserious-patch-2

dev-thinkingserious-patch-2 http://github.com/sendgrid/smtpapi-php

Build SendGrid X-SMTPAPI headers in PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

api email grid sendgrid smtp send smtpapi xsmtp x-smtp

09/03 2017

dev-thinkingserious-patch-1

dev-thinkingserious-patch-1 http://github.com/sendgrid/smtpapi-php

Build SendGrid X-SMTPAPI headers in PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

api email grid sendgrid smtp send smtpapi xsmtp x-smtp

14/04 2015

0.5.0

0.5.0.0 http://github.com/sendgrid/smtpapi-php

Build SendGrid X-SMTPAPI headers in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

api email grid sendgrid smtp send smtpapi xsmtp x-smtp

27/03 2015

0.4.0

0.4.0.0 http://github.com/sendgrid/smtpapi-php

Build SendGrid X-SMTPAPI headers in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

api email grid sendgrid smtp send smtpapi xsmtp x-smtp

27/03 2015

0.3.0

0.3.0.0 http://github.com/sendgrid/smtpapi-php

Build SendGrid X-SMTPAPI headers in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

api email grid sendgrid smtp send smtpapi xsmtp x-smtp

24/01 2015

0.2.0

0.2.0.0 http://github.com/sendgrid/smtpapi-php

Build SendGrid X-SMTPAPI headers in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

api email grid sendgrid smtp send smtpapi xsmtp x-smtp

17/12 2014

0.1.0

0.1.0.0 http://github.com/sendgrid/smtpapi-php

Build SendGrid X-SMTPAPI headers in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

api email grid sendgrid smtp send smtpapi xsmtp x-smtp

01/01 2014

0.0.1

0.0.1.0 http://github.com/sendgrid/smtpapi-php

Build SendGrid X-SMTPAPI headers in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

api email grid sendgrid smtp send smtpapi xsmtp x-smtp