GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sendgrid/smtpapi-php: SendGrid's smtpapi library in PHP

BranchesTags
Open more actions menu

Latest commit

 

History

233 Commits
233 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
examples
examples
 
 
lib
lib
 
 
static/img
static/img
 
 
test
test
 
 
use_cases
use_cases
 
 
.editorconfig
.editorconfig
 
 
.env_sample
.env_sample
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
FIRST_TIMERS.md
FIRST_TIMERS.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
PULL_REQUEST_TEMPLATE.md
PULL_REQUEST_TEMPLATE.md
 
 
README.md
README.md
 
 
TROUBLESHOOTING.md
TROUBLESHOOTING.md
 
 
UPGRADE.md
UPGRADE.md
 
 
USAGE.md
USAGE.md
 
 
composer.json
composer.json
 
 
smtpapi-php.php
smtpapi-php.php
 
 
twilio_sendgrid_logo.png
twilio_sendgrid_logo.png
 
 

Repository files navigation

Twilio SendGrid Logo

BuildStatus Latest Stable Version Latest Version on Packagist Twitter Follow GitHub contributors MIT licensed

This module helps build Twilio SendGrid's SMTP API headers.

Learn more about the SMTP API at Twilio SendGrid's documentation.

Announcements

All the updates to this module are documented in our CHANGELOG.

Table of Contents

  • Installation
  • Quick Start
  • Usage
  • Announcements
  • How to Contribute
  • About
  • Support
  • License

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.

Add the following to your composer.json file.

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

Then at the top of your script require the autoloader:

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.

⬇︎ Download Packaged Library ⬇︎

Then require the library from package:

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

The previous versions of the library can be downloaded directly from GitHub.

Setup Environment Variables

Environment Variable

Update the development environment with your SENDGRID_API_KEY, for example:

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

Quick Start

$header = new Smtpapi\Header();
$header->addTo('[email protected]');
$header->addTo('[email protected]');
print $header->jsonString();

Usage

  • Twilio SendGrid Docs
  • Example Code

How to Contribute

We encourage contributions to our projects; please see our CONTRIBUTING guide for details.

Quick links:

  • Feature Request
  • Bug Reports
  • Improvements to the Codebase
  • Review Pull Requests

About

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

Support

If you need help using SendGrid, please check the Twilio SendGrid Support Help Center.

License

The MIT License (MIT)

About

SendGrid's smtpapi library in PHP

sendgrid.com

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

68 stars

Watchers

190 watching

Forks

55 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.