---
title: "symfony/mailer v8.0.0 Breaking Changes on Packagist"
description: "What each symfony/mailer release removed, renamed or changed: 27 breaking changes in 6 versions on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/symfony/mailer
last_updated: 2026-12-04
---

# symfony/mailer breaking changes

symfony/mailer v8.0.0 (November 27, 2025) is its newest release with breaking changes. The first: Signature changed Symfony\\Component\\Mailer\\EventListener\\MessageLoggerListener::\_\_construct. Every breaking API change we have recorded in symfony/mailer on Packagist: 27 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `v8.2.0`, released November 28, 2026. MIT license. [Source repository](https://github.com/symfony/mailer)

Its v8.0.0-BETA1 release requires [PHP 8.4](https://since.dev/calendar/php/8.4.md) or later. [PHP end of life dates](https://since.dev/calendar/php.md).

- From [v7.0.0](#v-v7-0-0) to [v8.0.0](#v-v8-0-0): 4 breaking changes in 2 versions.

## symfony/mailer v8.0.0 breaking changes

symfony/mailer v8.0.0, released November 27, 2025: 1 breaking change.

- **Signature changed** `Symfony\Component\Mailer\EventListener\MessageLoggerListener::__construct`  

Was public function \_\_construct(private ?\\Closure $disabled = null); now public function \_\_construct(). [packagist.org](https://packagist.org/packages/symfony/mailer#v8.0.0)

## symfony/mailer v8.0.0-BETA1 breaking changes

symfony/mailer v8.0.0-BETA1, released November 27, 2025: 3 breaking changes.

- **Removed**  

Symfony 8 requires PHP 8.4 or later. Projects on older PHP versions must upgrade PHP before upgrading this package. [github.com](https://github.com/symfony/mailer/releases/tag/v8.0.0-BETA1)
- **Removed** `TransportFactoryTestCase`  

The deprecated TransportFactoryTestCase class is removed in this release. Code that extends it must move to the replacement test tooling or stop using it. [github.com](https://github.com/symfony/mailer/releases/tag/v8.0.0-BETA1)
- **Configuration changed**  

Symfony 8 needs PHP 8.4 or newer, so PHP must be upgraded before using this version. [github.com](https://github.com/symfony/mailer/releases/tag/v8.0.0-BETA1)

## symfony/mailer v7.0.0 breaking changes

symfony/mailer v7.0.0, released November 29, 2023: 12 breaking changes.

- **Removed** `Symfony\Component\Mailer\Exception\UnexpectedResponseException`  

Symfony\\Component\\Mailer\\Exception\\UnexpectedResponseException was removed in symfony/mailer v7.0.0 [packagist.org](https://packagist.org/packages/symfony/mailer#v7.0.0)
- **Removed** `Symfony\Component\Mailer\SentMessage::__construct`  

Symfony\\Component\\Mailer\\SentMessage::\_\_construct was removed in symfony/mailer v7.0.0 [packagist.org](https://packagist.org/packages/symfony/mailer#v7.0.0)
- **Removed** `Symfony\Component\Mailer\Transport\Smtp\SmtpTransport::__serialize`  

Symfony\\Component\\Mailer\\Transport\\Smtp\\SmtpTransport::\_\_serialize was removed in symfony/mailer v7.0.0 [packagist.org](https://packagist.org/packages/symfony/mailer#v7.0.0)
- **Removed** `Symfony\Component\Mailer\Transport\Smtp\SmtpTransport::__unserialize`  

Symfony\\Component\\Mailer\\Transport\\Smtp\\SmtpTransport::\_\_unserialize was removed in symfony/mailer v7.0.0 [packagist.org](https://packagist.org/packages/symfony/mailer#v7.0.0)
- **Signature changed** `Symfony\Component\Mailer\EventListener\EnvelopeListener::__construct`  

Was public function \_\_construct(Address|string|null $sender = null, ?array $recipients = null); now public function \_\_construct(Address|string $sender = null, array $recipients = null). [packagist.org](https://packagist.org/packages/symfony/mailer#v7.0.0)
- **Signature changed** `Symfony\Component\Mailer\EventListener\MessageLoggerListener::reset`  

Was public function reset(); now public function reset(): void. [packagist.org](https://packagist.org/packages/symfony/mailer#v7.0.0)
- **Signature changed** `Symfony\Component\Mailer\Transport\AbstractHttpTransport::$client`  

Was protected $client; now protected ?HttpClientInterface $client. [packagist.org](https://packagist.org/packages/symfony/mailer#v7.0.0)
- **Signature changed** `Symfony\Component\Mailer\Transport\AbstractHttpTransport::$host`  

Was protected $host; now protected ?string $host. [packagist.org](https://packagist.org/packages/symfony/mailer#v7.0.0)
- **Signature changed** `Symfony\Component\Mailer\Transport\AbstractHttpTransport::$port`  

Was protected $port; now protected ?int $port. [packagist.org](https://packagist.org/packages/symfony/mailer#v7.0.0)
- **Signature changed** `Symfony\Component\Mailer\Transport\AbstractTransportFactory::$client`  

Was protected $client; now protected ?HttpClientInterface $client. [packagist.org](https://packagist.org/packages/symfony/mailer#v7.0.0)

And 2 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## symfony/mailer v7.0.0-RC1 breaking changes

symfony/mailer v7.0.0-RC1, released November 29, 2023: 2 breaking changes.

- **Default changed**  

The default port used for Mailjet is updated. Users relying on the old default port must set it explicitly. [github.com](https://github.com/symfony/mailer/releases/tag/v7.0.0-RC1)
- **Default changed**  

The default port for Mailjet is updated. Set the port explicitly if your code depends on the old default. [github.com](https://github.com/symfony/mailer/releases/tag/v7.0.0-RC1)

## symfony/mailer v7.0.0-BETA3 breaking changes

symfony/mailer v7.0.0-BETA3, released November 29, 2023: 1 breaking change.

- **Behavior changed**  

Exception messages no longer include full DSNs. Code that parses or logs these messages must not depend on the DSN text. [github.com](https://github.com/symfony/mailer/releases/tag/v7.0.0-BETA3)

## symfony/mailer v7.0.0-BETA1 breaking changes

symfony/mailer v7.0.0-BETA1, released November 29, 2023: 8 breaking changes.

- **Removed**  

Code paths that were deprecated in the 6.x line are removed. Code relying on them must be updated before upgrading. [github.com](https://github.com/symfony/mailer/releases/tag/v7.0.0-BETA1)
- **Removed**  

The package now requires PHP 8.2 or later. Code running on older PHP versions must upgrade PHP before updating. [github.com](https://github.com/symfony/mailer/releases/tag/v7.0.0-BETA1)
- **Removed**  

Code paths deprecated in 6.x are removed in this major release. Stop relying on any deprecated behavior. [github.com](https://github.com/symfony/mailer/releases/tag/v7.0.0-BETA1)
- **Removed**  

The Sendinblue bridge is removed in favor of the new Brevo mailer bridge. Users of the Sendinblue bridge must switch to the Brevo bridge. [github.com](https://github.com/symfony/mailer/releases/tag/v7.0.0-BETA1)
- **Removed**  

The Sendinblue bridge is removed in favor of the new Brevo bridge. Move existing code to the Brevo bridge. [github.com](https://github.com/symfony/mailer/releases/tag/v7.0.0-BETA1)
- **Removed**  

The package now requires PHP 8.2 or later. Upgrade PHP before updating. [github.com](https://github.com/symfony/mailer/releases/tag/v7.0.0-BETA1)
- **Signature changed**  

Magic methods now declare return types, which can break subclasses that override them incompatibly. [github.com](https://github.com/symfony/mailer/releases/tag/v7.0.0-BETA1)
- **Signature changed**  

Methods across components now declare native return types. Subclasses overriding these methods must add matching return types. [github.com](https://github.com/symfony/mailer/releases/tag/v7.0.0-BETA1)

## Related packages

- [symfony/asset](https://since.dev/packages/packagist/symfony/asset.md)
- [symfony/browser-kit](https://since.dev/packages/packagist/symfony/browser-kit.md)
- [symfony/cache](https://since.dev/packages/packagist/symfony/cache.md)
- [symfony/config](https://since.dev/packages/packagist/symfony/config.md)
- [symfony/console](https://since.dev/packages/packagist/symfony/console.md)
- [symfony/css-selector](https://since.dev/packages/packagist/symfony/css-selector.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
