spaceemotion/laravel-sparkpost-options 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

spaceemotion/laravel-sparkpost-options

最新稳定版本:1.1.1

Composer 安装命令:

composer require spaceemotion/laravel-sparkpost-options

包简介

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

README 文档

README

Latest Version on Packagist Software License Total Downloads

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.

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

Install

Via Composer

$ composer require spaceemotion/laravel-sparkpost-options

5.4 and below: Add the ServiceProvider to your app.php:

Spaceemotion\LaravelSparkPostOptions\SparkPostConfigProvider::class,

Usage

You can either attach the mail header directly:

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

or via the integrated attach method:

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

License

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

统计信息

  • 总下载量: 1.34k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-01-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固