hampel/symfonymailer-sparkpost
最新稳定版本:1.1.3
Composer 安装命令:
composer require hampel/symfonymailer-sparkpost
包简介
A Symfony Mailer Transport for SparkPost
README 文档
README
By Simon Hampel
Description
Standalone implementation of Symfony Mailer SparkPost Driver based on https://github.com/gam6itko/sparkpost-mailer - but using GuzzleHttp as the HTTP client rather than Symfony HTTP Client.
Installation
You can install the package via composer:
composer require hampel/symfonymailer-sparkpost
Usage
The SparkPost options available are defined in the API: SparkPost options
$sparkpostOptions = [ 'options' => [ 'open_tracking' => false, 'click_tracking' => true, 'transactional' => true, ], ]; $transport = new SparkPostApiTransport( 'MYSPARKPOSTAPIKEY', new GuzzleHttp\Client ); new SparkPostEmail(); $email->setOptions([ 'click_tracking' => false, 'open_tracking' => true, 'transactional' => true, ]); $email->setCampaignId('my-campaign'); $email->from('webmaster@example.com'); $email->to('me@example.com'); $email->subject('My subject'); $email->text(...); $email->html(...); $result = $transport->send($email);
统计信息
- 总下载量: 33
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-09