openbuildings/postmark
最新稳定版本:0.5.0
Composer 安装命令:
composer require openbuildings/postmark
包简介
Swiftmailer Transport Class for Postmark
README 文档
README
A full featured postmark transport for Swiftmailer, allowing attachments, html emails / parts, cc, bcc and sending multiple emails with one api call.
Usage
$transport = Swift_PostmarkTransport::newInstance('your api key'); $mailer = new Swift_Mailer($transport); $message = new Swift_Message(); // Add stuff to your message $message->setFrom('test@example.com'); $message->setTo('test2@example.com'); $message->setSubject('Test'); $message->setBody('Test Email'); $mailer->send($message);
Usage with Symfony 2
Define Postmark Transport as service:
services: swift_transport.postmark: class: Openbuildings\Postmark\Swift_PostmarkTransport arguments: - POSTMARK_API_KEY
In config.yml change transport to defined service:
swiftmailer: transport: swift_transport.postmark
License
Copyright (c) 2012-2013, OpenBuildings Ltd. Developed by Ivan Kerin as part of clippings.com
Under BSD-3-Clause license, read LICENSE file.
统计信息
- 总下载量: 367.03k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 17
- 点击次数: 2
- 依赖项目数: 5
- 推荐数: 1
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2026-01-04