Download the PHP package etailors/mautic-amazon-ses without Composer

On this page you can find all versions of the php package etailors/mautic-amazon-ses. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mautic-amazon-ses

Mautic AWS SES Plugin with SNS Callback

This plugin provides integration between Mautic 5, 6 and 7 and Amazon SES for sending emails through AWS. It also integrates with Amazon SNS for handling email feedback such as bounces and complaints via callbacks. (PHP >= 8.1 required; Note: Mautic 7 itself requires PHP 8.2)

This is a custom plugin inspired by the structure of:

Feel free to suggest improvements or provide feedback — this is my first Mautic plugin and community contributions are welcome.


Features


Installation

1. Download and Install the Plugin

Install manual

  1. Download or clone the repository to your Mautic plugins directory:

  2. Clear Mautic’s cache:

  3. Go to Mautic Settings > Plugins and click the “Install/Update Plugins” button.

Install via Composer

If you prefer installing via Composer, run the following command from your Mautic root directory:

Version number

Then clear the cache and reload the plugins:

Note:
The plugin will automatically install into plugins/AmazonSesBundle.


2. Configure Amazon SES Settings

  1. In Mautic, navigate to Settings > Email Settings.
  2. Select the newly installed AWS SES option.
  3. In the DSN field, enter your connection string in the following format:

    • Replace <AWS_ACCESS_KEY> and <AWS_SECRET_KEY> with your AWS credentials.
    • Replace <AWS_REGION> with your AWS region (e.g., us-east-1).
    • Optionally set ratelimit to override the SES max send rate manually.
    • Set sns_topic_arn to the exact SNS topic ARN used for feedback. The callback fails closed when no allowed topic is configured. For multiple topics, set amazon_ses_sns_topic_arns as an array in Mautic's local configuration.
  4. Set the region in the options parameter, for example:

Amazon SES Integration


3. AWS SES Configuration

  1. Ensure that you have verified your domain and email addresses in AWS SES.
  2. Set up the appropriate IAM user with permissions to send emails via SES.
    Please make sure you create a new IAM user directly via IAM instead of upgrading an SMTP user with the permission: sending via SES API.

    There are known issues when upgrading SMTP-only users — see: issue #28.

Your IAM user must have permission to send and get account limits. Here’s an example policy:


4. Available Regions


SNS Callback Configuration

To receive feedback from Amazon SES regarding bounces and complaints, you need to set up Amazon SNS.

  1. Go to your Amazon SNS Dashboard.
  2. Create a new Topic (or use an existing one) for SES feedback.
  3. Subscribe to this topic with an HTTPS endpoint using the following URL:

  4. Ensure your topic sends notifications for bounces, complaints, and delivery status.
  5. Ensure the exact topic ARN is configured as sns_topic_arn in the mailer DSN. The plugin verifies the AWS signature and topic before processing any callback.
  6. For classic identity-based SNS notifications, enable Include original headers for bounce and complaint notifications on the verified SES identity. Mautic uses the X-EMAIL-ID header to attribute feedback to the email statistics. Configuration-set event publishing can use the X-EMAIL-ID message tag added by this plugin instead.
  7. Test your callback configuration by sending test emails and reviewing Mautic logs to verify feedback is processed correctly.

Batch Limit & Throttling

To avoid exceeding SES rate limits, this plugin automatically:

This prevents common errors like TooManyRequests while maximizing throughput.


Debugging


Contributions & Feedback

This is my first Mautic plugin, so I’m open to any feedback or improvements.
Feel free to open an issue or submit a pull request if you find a bug or have a feature request!


License

This project is licensed under the MIT License — see the LICENSE file for details.


Changelog

See CHANGELOG.md for release notes. Version 1.0.31 maintains compatibility with PHP 8.1 for Mautic 6 users, while supporting Mautic 7 (which requires PHP 8.2).


All versions of mautic-amazon-ses with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1.0
mautic/core-lib Version ^5.0 || ^6.0 || ^7.0
composer/installers Version ^2.0
aws/aws-php-sns-message-validator Version ^1.10
aws/aws-sdk-php Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package etailors/mautic-amazon-ses contains the following files

Loading the files please wait ...