---
title: Exchange SwiftMailer with Symfony mailer
issue: NEXT-12246
author: Stefan Sluiter
author_email: [email protected]
author_github: @ssltg
---
-
Added
symfony/mailer ~4.4
to composer.json -
Added
Shopware\Core\Content\Mail\Service\MailSender
-
Added
Shopware\Core\Content\Mail\Service\MailService
-
Added
Shopware\Core\Content\Mail\Service\MailerTransportFactory
-
Added
Shopware\Core\Content\Mail\Service\AbstractMailSender
-
Added
Shopware\Core\Content\Mail\Service\AbstractMailService
-
Added
Shopware\Core\Framework\Feature\Exception\FeatureActiveException
-
Added argument
emailService
with typeShopware\Core\Content\Mail\Service\AbstractMailService
inShopware\Core\Content\MailTemplate\Subscriber\MailSendSubscriber
-
Changed argument type of argument
$message
inShopware\Core\Content\MailTemplate\Service\Event\MailBeforeSentEvent
fromSwift_Message
toSymfony\Component\Mime\Email
-
Changed return type of method
getMessage
inShopware\Core\Content\MailTemplate\Service\Event\MailBeforeSentEvent
fromSwift_Message
toSymfony\Component\Mime\Email
-
Changed
Shopware\Core\Framework\Feature\FeatureNotActiveException
toShopware\Core\Framework\Feature\Exception\FeatureNotActiveException
-
Removed
Shopware\Core\Content\MailTemplate\Service\MailSender
-
Removed
Shopware\Core\Content\MailTemplate\Service\MailSenderInterface
-
Removed
Shopware\Core\Content\MailTemplate\Service\MailService
-
Removed
Shopware\Core\Content\MailTemplate\Service\MailServiceInterface
-
Removed
Shopware\Core\Content\MailTemplate\Service\MessageFactoryInterface
-
Removed
Shopware\Core\Content\MailTemplate\Service\MessageFactory
-
Removed
Shopware\Core\Content\MailTemplate\Service\MessageTransportFactoryInterface
-
Removed
Shopware\Core\Content\MailTemplate\Service\MessageTransportFactory
-
Removed
Shopware\Core\Content\MailTemplate\Service\MailerTransportFactory
-
Removed
Shopware\Core\Content\MailTemplate\Service\MailerTransportFactoryInterface
-
Removed argument
mailService
inShopware\Core\Content\MailTemplate\Subscriber\MailSendSubscriber
-
Removed method
createMessage
inShopware\Core\Content\MailTemplate\Service\MessageFactory
usecreateMail
instead
- Removed block
sw_settings_mailer_smtp_authentication
- Removed method
authenticationOptions
in componentsw-settings-mailer-smtp