@@ -24,14 +24,6 @@ Installation
2424
2525 .. include :: /components/require_autoload.rst.inc
2626
27-
28- Introduction
29- ------------
30-
31- Symfony mailer is an experimental component introduced in 4.3 which
32- will eventually replace swiftmailer.
33-
34-
3527Usage
3628-----
3729
@@ -44,7 +36,7 @@ The Mailer component has two main classes: a ``Transport`` and the ``Mailer`` it
4436 $mailer = new Mailer($transport);
4537 $mailer->send($email);
4638
47- The `$email ` object is created via the :doc: `Mime component </components/mime >`.
39+ The `` $email ` ` object is created via the :doc: `Mime component </components/mime >`.
4840
4941Transport
5042---------
@@ -81,7 +73,8 @@ For example, suppose you want to use Google's Gmail. First, install it:
8173 Use a DSN
8274---------
8375
84- The mailer component provides a convenient way to create transport object from DSN string::
76+ The mailer component provides a convenient way to create transport object from
77+ DSN string::
8578
8679 use Symfony\Component\Mailer\Transport;
8780
@@ -96,8 +89,9 @@ Where ``$dsn`` as one of the form below.
9689- ``http://key:domain@mailgun ``
9790- ``api://id@postmark ``
9891
99- This provides a unified behaviour across all providers.
100- Easily switch from SMTP in development to a "real" provider in production with same API.
92+ This provides a unified behavior across all providers.
93+ Easily switch from SMTP in development to a "real" provider in production
94+ with same API.
10195
10296Failover transport
10397------------------
@@ -106,20 +100,22 @@ You can create failover transport with the help of `||` operator::
106100
107101 $dsn = 'api://id@postmark || smtp://key@sendgrid';
108102
109- So if the first transport fails, the mailer will attempt to send through the second transport.
103+ So if the first transport fails, the mailer will attempt to send through the
104+ second transport.
110105
111106Round Robin
112107-----------
113108
114- If you want to send emails by using multiple transports in a round-robin fashion, you can use the
115- ``&& `` operator between the transports::
109+ If you want to send emails by using multiple transports in a round-robin fashion,
110+ you can use the ``&& `` operator between the transports::
116111
117112 $dsn = 'api://id@postmark && smtp://key@sendgrid'
118113
119114Async
120115-----
121116
122- If you want to use the async functionality you need to install the :doc: `Messenger component </components/messenger >`.
117+ If you want to use the async functionality you need to install the
118+ :doc: `Messenger component </components/messenger >`.
123119
124120.. code-block :: terminal
125121
@@ -161,4 +157,4 @@ Learn More
161157-----------
162158
163159To learn more about how to use the mailer component, refer to the
164- :doc: `Symfony Framework Mailer documentation </mailer >`.
160+ :doc: `Symfony Framework Mailer documentation </mailer >`.
0 commit comments