Commit 6f84ff52 authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Georg Ringer
Browse files

[!!!][TASK] Remove unused MailerAdapterInterface

The MailerAdapterInterface, related to SwiftMailer
is removed, since it is unused in core since v7.

Resolves: #97752
Releases: main
Change-Id: Ibb0a97dd17a06cb7b4d43d8d9aa4326194f550f5

Tested-by: Benni Mack's avatarBenni Mack <>
Tested-by: Georg Ringer's avatarGeorg Ringer <>
Reviewed-by: Benni Mack's avatarBenni Mack <>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <>
parent 94dd6f06
* This file is part of the TYPO3 CMS project.
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
* The TYPO3 project - inspiring people to share!
namespace TYPO3\CMS\Core\Mail;
* Mailer Adapter interface
interface MailerAdapterInterface
* Mail sending function
* @param string $to Mail recipient.
* @param string $subject Mail subject.
* @param string $messageBody Mail body.
* @param array $additionalHeaders Additional mail headers.
* @param array $additionalParameters Additional mailer parameters.
* @param bool $fakeSending Whether to fake sending or not, used in Unit Tests.
* @return bool TRUE if the mail was successfully sent, FALSE otherwise.
public function mail($to, $subject, $messageBody, $additionalHeaders = null, $additionalParameters = null, $fakeSending = false);
.. include:: /Includes.rst.txt
.. _breaking-97752-1654761506
Breaking: #97752 - MailerAdapterInterface removed
See :issue:`97752`
The :php:`\TYPO3\CMS\Core\Mail\MailerAdapterInterface` has been removed,
since the interface became unused in v7 due to removal of core's
:php:`SwiftMailerAdapter` implementation, which had been used as hook
subscriber in the also removed :php:`MailUtility::mail()` method.
Implementing the interface in custom extension code will trigger
a PHP Error.
Affected installations
All installations implementing the interface in custom extension code,
which is very unlikely. The extenion scanner will report any usage as
strong match.
Remove any usage of the interface in extension code.
.. index:: PHP-API, FullyScanned, ext:core
......@@ -1979,4 +1979,9 @@ return [
'TYPO3\CMS\Core\Mail\MailerAdapterInterface' => [
'restFiles' => [
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment