PHPackages                             martijngastkemper/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. martijngastkemper/swiftmailer-transport-aws-ses

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

martijngastkemper/swiftmailer-transport-aws-ses
===============================================

Add AWS SES support to Swiftmailer

0.9.2(11y ago)01021MITPHPPHP &gt;=5.2.0

Since Oct 30Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (6)Used By (0)

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

[](#what-is-it)

It's a simple transport for use with Swiftmailer to send mail over AWS SES.

As on 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)

Whereever you want, so long as you include it in your code.

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);

```

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.9% 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 ~371 days

Total

3

Last Release

4199d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/29bf6281fd117dcb4e9e15fb14d52e7fa8b0813abcd4d3e3fc5226d202ae0a2f?d=identicon)[martijngastkemper](/maintainers/martijngastkemper)

---

Top Contributors

[![jmhobbs](https://avatars.githubusercontent.com/u/115059?v=4)](https://github.com/jmhobbs "jmhobbs (34 commits)")[![bertrandom](https://avatars.githubusercontent.com/u/57770?v=4)](https://github.com/bertrandom "bertrandom (1 commits)")[![m14t](https://avatars.githubusercontent.com/u/207950?v=4)](https://github.com/m14t "m14t (1 commits)")[![thetamind](https://avatars.githubusercontent.com/u/872?v=4)](https://github.com/thetamind "thetamind (1 commits)")

---

Tags

awsemailsesswiftmailer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/martijngastkemper-swiftmailer-transport-aws-ses/health.svg)](https://phpackages.com/packages/martijngastkemper-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)[putyourlightson/craft-amazon-ses

Amazon SES mailer adapter.

1190.4k2](/packages/putyourlightson-craft-amazon-ses)[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)[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)
