PHPackages                             jmhobbs/swiftmailer-transport-aws-ses - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. jmhobbs/swiftmailer-transport-aws-ses

Abandoned → [https://github.com/jmhobbs/Swiftmailer-Transport--AWS-SES/blob/master/SMTP.md](/?search=https%3A%2F%2Fgithub.com%2Fjmhobbs%2FSwiftmailer-Transport--AWS-SES%2Fblob%2Fmaster%2FSMTP.md)Library[Mail &amp; Notifications](/categories/mail)

jmhobbs/swiftmailer-transport-aws-ses
=====================================

Add AWS SES support to Swiftmailer

1.2.0(5y ago)79358.5k↓22.7%35[3 issues](https://github.com/jmhobbs/Swiftmailer-Transport--AWS-SES/issues)2MITPHPPHP ^7.0

Since Oct 30Pushed 5y ago4 watchersCompare

[ Source](https://github.com/jmhobbs/Swiftmailer-Transport--AWS-SES)[ Packagist](https://packagist.org/packages/jmhobbs/swiftmailer-transport-aws-ses)[ RSS](/packages/jmhobbs-swiftmailer-transport-aws-ses/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (10)Used By (2)

THIS PACKAGE IS DEPRECATED
==========================

[](#this-package-is-deprecated)

This package is deprecated, you should move to the SMTP interface. Read more in [SMTP.md](https://github.com/jmhobbs/Swiftmailer-Transport--AWS-SES/blob/master/SMTP.md)

There will be no more feature development for this package, and only critical bug fixes will be applied.

What is it?
===========

[](#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](http://aws.amazon.com/ses/faqs/#21), so you may prefer to use Swiftmailer's built in SMTP transport.

Where do I put it?
==================

[](#where-do-i-put-it)

The best way to use it is through [composer](https://getcomposer.org/).

```
$ 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?
================

[](#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 &lt;= 5.x
=====================

[](#swiftmailer--5x)

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
========================

[](#symfony1x-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?
====================================

[](#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
===================

[](#swiftmailer-version)

Please note that some users [have had issues with older versions of Swiftmailer](https://github.com/jmhobbs/Swiftmailer-Transport--AWS-SES/issues/13).

Versions 4.1.3 and up should work fine.

Credits
=======

[](#credits)

- @jmhobbs - Original development
- @bertrandom - Bug fix
- @themouette - Plugins &amp; Symfony compatible
- @jonatrey &amp; @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

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 82% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~577 days

Recently: every ~602 days

Total

6

Last Release

2062d ago

Major Versions

0.9.2 → 1.0.02018-11-05

PHP version history (2 changes)0.9.0PHP &gt;=5.2.0

1.0.0PHP ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/275ea2ce829db1f6a6c00f2a23adc184701b39d0db817e396b32770431ec5e3c?d=identicon)[jmhobbs](/maintainers/jmhobbs)

---

Top Contributors

[![jmhobbs](https://avatars.githubusercontent.com/u/115059?v=4)](https://github.com/jmhobbs "jmhobbs (41 commits)")[![harmenjanssen](https://avatars.githubusercontent.com/u/803176?v=4)](https://github.com/harmenjanssen "harmenjanssen (1 commits)")[![jesse-s](https://avatars.githubusercontent.com/u/1793191?v=4)](https://github.com/jesse-s "jesse-s (1 commits)")[![m14t](https://avatars.githubusercontent.com/u/207950?v=4)](https://github.com/m14t "m14t (1 commits)")[![oojacoboo](https://avatars.githubusercontent.com/u/764664?v=4)](https://github.com/oojacoboo "oojacoboo (1 commits)")[![ovr](https://avatars.githubusercontent.com/u/572096?v=4)](https://github.com/ovr "ovr (1 commits)")[![thetamind](https://avatars.githubusercontent.com/u/872?v=4)](https://github.com/thetamind "thetamind (1 commits)")[![tweidman-ispot](https://avatars.githubusercontent.com/u/72510904?v=4)](https://github.com/tweidman-ispot "tweidman-ispot (1 commits)")[![bertrandom](https://avatars.githubusercontent.com/u/57770?v=4)](https://github.com/bertrandom "bertrandom (1 commits)")[![weierophinney](https://avatars.githubusercontent.com/u/25943?v=4)](https://github.com/weierophinney "weierophinney (1 commits)")

---

Tags

awsemailsesswiftmailer

### Embed Badge

![Health badge](/badges/jmhobbs-swiftmailer-transport-aws-ses/health.svg)

```
[![Health](https://phpackages.com/badges/jmhobbs-swiftmailer-transport-aws-ses/health.svg)](https://phpackages.com/packages/jmhobbs-swiftmailer-transport-aws-ses)
```

###  Alternatives

[serendipity_hq/bundle-aws-ses-monitor

Symfony bundle to monitor AWS SES bounces, complaints and deliveries through SNS. Comes with a command to fully configure the topics and includes configurable SwiftMailer filter to avoid sending emails to bounced and complained emails.

1380.7k](/packages/serendipity-hq-bundle-aws-ses-monitor)[juhasev/laravel-ses

Allows you to track opens, deliveries, bounces, complaints and clicked links when sending emails through Laravel and Amazon SES

1710.0k](/packages/juhasev-laravel-ses)[putyourlightson/craft-amazon-ses

Amazon SES mailer adapter.

1190.4k2](/packages/putyourlightson-craft-amazon-ses)[sunaoka/laravel-ses-template-driver

Amazon SES template mail driver for Laravel.

1088.0k](/packages/sunaoka-laravel-ses-template-driver)[andrewdyer/slim3-mailer

Email support for the Slim Framework using Twig and Swift Mailer.

1032.7k](/packages/andrewdyer-slim3-mailer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
