Search by

symfony / aha-send-mailer

fabpot

Symfony AhaSend Mailer Bridge

Package info

github.com/symfony/aha-send-mailer

Homepage

Type:symfony-mailer-bridge

pkg:composer/symfony/aha-send-mailer

Statistics

Installs: 18 110

Dependents: 0

Suggesters: 0

Stars: 1

v8.2.0-BETA2 2026-11-12 16:19 UTC

README

Provides AhaSend integration for Symfony Mailer.

Configuration example:

# SMTP
MAILER_DSN=ahasend+smtp://USERNAME:PASSWORD@default

# API
MAILER_DSN=ahasend+api://API_KEY:ACCOUNT_ID@default

# API (legacy v1, deprecated)
MAILER_DSN=ahasend+api://API_KEY@default

where:

  • USERNAME is your AhaSend SMTP Credentials username
  • PASSWORD is your AhaSend SMTP Credentials password
  • API_KEY is your AhaSend API key
  • ACCOUNT_ID is your AhaSend account ID; without it, the key is used with the legacy v1 API

Sending emails through the AhaSend v1 API is deprecated since Symfony 8.2. An ahasend+api:// DSN without an account ID still selects that legacy API, but only for the API keys created before v2: a v2 API key (prefixed with aha-sk-) without an account ID is rejected. Use a v2 API key and add your account ID to the DSN instead.

Note

Since Symfony 8.2, the ID of the remote events received from AhaSend is the Message-ID header of the message, without angle brackets. For a message sent through the v2 API or over SMTP, it is the ID that SentMessage::getMessageId() returns. This lets you match the events with the messages you sent. Before Symfony 8.2, the ID was the data.id field of the payload. This field is now AhaSend's own ID for the message, the id that the v2 API returns when sending it.

Sponsor

This package is looking for a backer.

Help Symfony by sponsoring its development!

Resources