2017 © Pedro Peláez
 

library laravel-sparkpost-options

Adds support for adding SparkPost options via the X-MSYS-API header, even when using the API implementation

image

spaceemotion/laravel-sparkpost-options

Adds support for adding SparkPost options via the X-MSYS-API header, even when using the API implementation

  • Monday, January 22, 2018
  • by spaceemotion
  • Repository
  • 0 Watchers
  • 1 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 5 % Grown

The README.md

laravel-sparkpost-options

Latest Version on Packagist ![Software License][ico-license] Total Downloads, (*1)

This package adds support for adding SparkPost messaging options. Even though Laravel allows to set global options, this package adds the functionality for per-message options via the X-MSYS-API header, even when using the integrated "send via API" implementation., (*2)

SparkPost Options documentation: https://developers.sparkpost.com/api/smtp-api.html#header-using-the-x-msys-api-custom-header, (*3)

Install

Via Composer, (*4)

``` bash $ composer require spaceemotion/laravel-sparkpost-options, (*5)


**5.4 and below:** Add the ServiceProvider to your `app.php`: ```php Spaceemotion\LaravelSparkPostOptions\SparkPostConfigProvider::class,

Usage

You can either attach the mail header directly:, (*6)

$mailable->withSwiftMessage(function ($message) use ($options) {
    $message->getHeaders()->addTextHeader(SparkPostConfigProvider::CONFIG_HEADER, json_encode([
        // Your options here...
    ]));
});

or via the integrated attach method:, (*7)

ConfigurableTransport::attach($mailable, [
    // Your options here...
]);

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions

22/01 2018

dev-master

9999999-dev https://github.com/spaceemotion/laravel-sparkpost-options

Adds support for adding SparkPost options via the X-MSYS-API header, even when using the API implementation

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar spaceemotion

laravel mailer sparkpost

21/01 2018

1.1

1.1.0.0 https://github.com/spaceemotion/laravel-sparkpost-options

Adds support for adding SparkPost options via the X-MSYS-API header, even when using the API implementation

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar spaceemotion

laravel mailer sparkpost

21/01 2018

1.0

1.0.0.0 https://github.com/spaceemotion/laravel-sparkpost-options

Adds support for adding SparkPost options via the X-MSYS-API header, even when using the API implementation

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar spaceemotion

laravel mailer sparkpost