Skip to content

Commit dd4819c

Browse files
committed
tweaks
1 parent 7fbfa72 commit dd4819c

File tree

5 files changed

+16
-13
lines changed

5 files changed

+16
-13
lines changed

console/command_in_controller.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ their code. Instead, you can execute the command directly.
2121
overhead.
2222

2323
Imagine you want to send spooled Swift Mailer messages by
24-
:doc:`using the swiftmailer:spool:send command </email/spool>`.
24+
:doc:`using the swiftmailer:spool:send command </email>`.
2525
Run this command from inside your controller via::
2626

2727
// src/Controller/SpoolController.php

email.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
Swift Mailer
55
============
66

7-
.. deprecated:: 4.3
8-
Using Swift Mailer is no longer the recommended way to send emails in
9-
Symfony. Instead, check out :doc:`Mailer </mailer>`.
7+
.. note::
8+
In Symfony 4.3, the :doc:`Mailer </mailer>` component was introduced and can
9+
be used instead of Swiftmailer.
1010

1111
Symfony provides a mailer feature based on the popular `Swift Mailer`_ library
1212
via the `SwiftMailerBundle`_. This mailer supports sending messages with your

mailer.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,24 @@ Sending Emails with Mailer
22
==========================
33

44
.. versionadded:: 4.3
5-
The Mailer component was added in Symfony 4.3. Previously, Swift Mailer
6-
was recommended. You can still :doc:`read its documentation</email/swiftmailer>`.
5+
The Mailer component was added in Symfony 4.3. The previous solution - Swiftmailer -
6+
is still valid: :doc:`Swiftmailer</email>`.
77

88
Installation
99
------------
1010

11+
.. caution::
12+
13+
The Mailer component is experimental in Symfony 4.3: some backwards compatibility
14+
breaks could occur before 4.4.
15+
1116
Symfony's Mailer component is a *powerful* way to send email - complete with
1217
support for multipart messages, Twig integration, CSS inlining, file attachments
1318
and a lot more. Install it with:
1419

1520
.. code-block:: terminal
1621
17-
$ composer require mailer
22+
$ composer require symfony/mailer
1823
1924
Transport Setup
2025
---------------
@@ -44,7 +49,7 @@ SendGrid ``composer require symfony/sendgrid-mailer``
4449
Gmail ``composer require symfony/google-mailer``
4550
================== =============================================
4651

47-
Each library includes a :ref:`Flex recipe` that will add example configuration
52+
Each library includes a :ref:`Flex recipe <flex-recipe>` that will add example configuration
4853
to your ``.env`` file. For example, suppose you want to use SendGrid. First,
4954
install it:
5055

reference/configuration/swiftmailer.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
Mailer Configuration Reference (SwiftmailerBundle)
55
==================================================
66

7-
.. deprecated:: 4.3
8-
Using Swift Mailer is no longer the recommended way to send emails in
9-
Symfony. Instead, check out :doc:`Mailer </mailer>`.
10-
117
The SwiftmailerBundle integrates the Swiftmailer library in Symfony applications
128
to :doc:`send emails </email>`. All these options are configured under the
139
``swiftmailer`` key in your application configuration.
@@ -161,7 +157,7 @@ values are ``plain``, ``login``, ``cram-md5``, or ``null``.
161157
spool
162158
~~~~~
163159

164-
For details on email spooling, see :doc:`/email/spool`.
160+
For details on email spooling, see :doc:`/mailer`.
165161

166162
type
167163
....

setup/flex.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ SwiftmailerBundle and returns the "recipe" for it.
5151
Flex keeps tracks of the recipes it installed in a ``symfony.lock`` file, which
5252
must be committed to your code repository.
5353

54+
.. _flex-recipe:
55+
5456
Symfony Flex Recipes
5557
~~~~~~~~~~~~~~~~~~~~
5658

0 commit comments

Comments
 (0)