jmhobbs/swiftmailer-transport-aws-ses
最新稳定版本:1.2.0
Composer 安装命令:
composer require jmhobbs/swiftmailer-transport-aws-ses
包简介
Add AWS SES support to Swiftmailer
关键字:
README 文档
README
This package is deprecated, you should move to the SMTP interface. Read more in SMTP.md
There will be no more feature development for this package, and only critical bug fixes will be applied.
What is it?
It's a simple transport for use with Swiftmailer to send mail over AWS SES.
As of December 2011, Amazon provides an SMTP interface to SES, so you may prefer to use Swiftmailer's built in SMTP transport.
Where do I put it?
The best way to use it is through composer.
$ composer require jmhobbs/swiftmailer-transport-aws-ses Which will bring in Swiftmailer if you don't already have it installed.
Otherwise Swift can autoload it if you put the files in this directory:
[swift library root]/classes/Swift/AWSTransport.php How do I use it?
Like any other Swiftmailer transport:
//Create the Transport $transport = Swift_AWSTransport::newInstance( 'AWS_ACCESS_KEY', 'AWS_SECRET_KEY' ); //Create the Mailer using your created Transport $mailer = Swift_Mailer::newInstance($transport); $mailer->send($message); Swiftmailer <= 5.x
The current branch has been update to be compatible with Swiftmailer 6. If you need the old branch, it is availble under the 0.9.x tags, or the swiftmailer-5.x branch.
Symfony1.X configuration
```yaml # app/frontend/config/factories.yml all: mailer: class: sfMailer param: transport: class: Swift_AWSTransport accessKeyId: your-access-key secretKey: Y0uR-$3cr3t5-k3y debug: false endpoint: 'https://email.us-east-1.amazonaws.com/' # make sure to use trailing slash ! ``` How do I get the message ID on send?
You need to register the Swift_Events_ResponseReceivedListener plugin with a callback. See example/responseListener.php for details.
$transport->registerPlugin( new Swift_Events_ResponseReceivedListener( function ( $message, $body ) { echo sprintf( "Message-ID %s.\n", $body->SendRawEmailResult->MessageId ); }) ); Swiftmailer Version
Please note that some users have had issues with older versions of Swiftmailer.
Versions 4.1.3 and up should work fine.
Credits
- @jmhobbs - Original development
- @bertrandom - Bug fix
- @themouette - Plugins & Symfony compatible
- @jonatrey & @faz - Debugging and Testing issue #13
- @casconed - Made debug function more robust, issue #21
- @martijngastkemper - Added responseReceived event to get message id from AWS
- @weierophinney - Swiftmailer 6 support
jmhobbs/swiftmailer-transport-aws-ses 适用场景与选型建议
jmhobbs/swiftmailer-transport-aws-ses 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 356.94k 次下载、GitHub Stars 达 81, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「email」 「aws」 「swiftmailer」 「ses」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jmhobbs/swiftmailer-transport-aws-ses 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jmhobbs/swiftmailer-transport-aws-ses 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jmhobbs/swiftmailer-transport-aws-ses 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Parse a generic mail stream, and convert it to a SwiftMailer Message
This package includes a script and fail2ban configuration that allows you to use fail2ban when utilizing AWS elastic load balancer (ELB) and an apache webserver.
Database Spool Bundle for SwiftMailer and Symfony 3
Integrate Emogrifier plugin into SilverStripe.
Elastic Driver for Laravel Scout
simple api library.
统计信息
- 总下载量: 356.94k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 81
- 点击次数: 26
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04