[Maintenance] Remove swiftmailer leftovers (#17128)

| Q               | A
|-----------------|-----
| Branch?         | 2.0
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | n/a
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
- Features, removing deprecations and BC breaks must be submitted
against the 2.0 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
This commit is contained in:
Grzegorz Sadowski 2024-10-07 12:49:24 +02:00 committed by GitHub
commit 1f3cb4c9e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 22 deletions

View file

@ -82,18 +82,6 @@ In order to send emails you need to configure Mailer Service. Basically there ar
* We are recommending to use `Symfony Mailer <https://symfony.com/doc/current/mailer.html>`_ where out of the box, you can deliver emails by configuring the ``MAILER_DSN`` variable in your .env file. * We are recommending to use `Symfony Mailer <https://symfony.com/doc/current/mailer.html>`_ where out of the box, you can deliver emails by configuring the ``MAILER_DSN`` variable in your .env file.
* In Symfony Mailer use the `3rd Party Transports <https://symfony.com/doc/current/mailer.html#using-a-3rd-party-transport>`_ * In Symfony Mailer use the `3rd Party Transports <https://symfony.com/doc/current/mailer.html#using-a-3rd-party-transport>`_
* (deprecated) Use SwiftMailer with this short configuration:
1. **Create an account on a mailing service.**
2. **In your** ``.env`` **file modify/add the** ``MAILER_URL`` **variable.**
.. code-block:: text
MAILER_URL=gmail://username:password@local
.. note::
Email delivery is disabled for test, dev and staging environments by default. The prod environment has delivery turned on.
You can learn more about configuring mailer service in :doc:`How to configure mailer? </cookbook/emails/mailer>` You can learn more about configuring mailer service in :doc:`How to configure mailer? </cookbook/emails/mailer>`

View file

@ -8,16 +8,7 @@ In Sylius emails are configured the Symfony way, so you can get inspired by the
We are recommending to use `Symfony Mailer <https://symfony.com/doc/current/mailer.html>`_ where out of the box, you can deliver emails by configuring the ``MAILER_DSN`` variable in your .env file. We are recommending to use `Symfony Mailer <https://symfony.com/doc/current/mailer.html>`_ where out of the box, you can deliver emails by configuring the ``MAILER_DSN`` variable in your .env file.
If you prefer using the SwiftMailer service you will need to: Emails delivery is disabled for `test`, `dev` and `stage` environments by default. The `prod` environment has delivery turned
1. **Create an account on a mailing service.**
2. **In the your** ``.env`` **file modify/add the** ``MAILER_URL`` **variable.**
.. code-block:: text
MAILER_URL=gmail://username:password@localhost
Emails delivery is disable for `test`, `dev` and `stage` environments by default. The `prod` environment has delivery turned
on by default, so there is nothing to worry about if you did not change anything about it. on by default, so there is nothing to worry about if you did not change anything about it.
**That's pretty much all! All the other issues are dependent on the service you are using.** **That's pretty much all! All the other issues are dependent on the service you are using.**