@@ -19,14 +19,6 @@ Installation
1919
2020 .. include :: /components/require_autoload.rst.inc
2121
22-
23- Introduction
24- ------------
25-
26- Symfony mailer is an experimental component introduced in 4.3 which
27- will eventually replace swiftmailer.
28-
29-
3022Usage
3123-----
3224
@@ -39,7 +31,7 @@ The Mailer component has two main classes: a ``Transport`` and the ``Mailer`` it
3931 $mailer = new Mailer($transport);
4032 $mailer->send($email);
4133
42- The `$email ` object is created via the :doc: `Mime component </components/mime >`.
34+ The `` $email ` ` object is created via the :doc: `Mime component </components/mime >`.
4335
4436Transport
4537---------
@@ -76,7 +68,8 @@ For example, suppose you want to use Google's Gmail. First, install it:
7668 Use a DSN
7769---------
7870
79- The mailer component provides a convenient way to create transport object from DSN string::
71+ The mailer component provides a convenient way to create transport object from
72+ DSN string::
8073
8174 use Symfony\Component\Mailer\Transport;
8275
@@ -91,8 +84,9 @@ Where ``$dsn`` as one of the form below.
9184- ``http://key:domain@mailgun ``
9285- ``api://id@postmark ``
9386
94- This provides a unified behaviour across all providers.
95- Easily switch from SMTP in development to a "real" provider in production with same API.
87+ This provides a unified behavior across all providers.
88+ Easily switch from SMTP in development to a "real" provider in production
89+ with same API.
9690
9791Failover transport
9892------------------
@@ -101,20 +95,22 @@ You can create failover transport with the help of `||` operator::
10195
10296 $dsn = 'api://id@postmark || smtp://key@sendgrid';
10397
104- So if the first transport fails, the mailer will attempt to send through the second transport.
98+ So if the first transport fails, the mailer will attempt to send through the
99+ second transport.
105100
106101Round Robin
107102-----------
108103
109- If you want to send emails by using multiple transports in a round-robin fashion, you can use the
110- ``&& `` operator between the transports::
104+ If you want to send emails by using multiple transports in a round-robin fashion,
105+ you can use the ``&& `` operator between the transports::
111106
112107 $dsn = 'api://id@postmark && smtp://key@sendgrid'
113108
114109Async
115110-----
116111
117- If you want to use the async functionality you need to install the :doc: `Messenger component </components/messenger >`.
112+ If you want to use the async functionality you need to install the
113+ :doc: `Messenger component </components/messenger >`.
118114
119115.. code-block :: terminal
120116
@@ -156,4 +152,4 @@ Learn More
156152-----------
157153
158154To learn more about how to use the mailer component, refer to the
159- :doc: `Symfony Framework Mailer documentation </mailer >`.
155+ :doc: `Symfony Framework Mailer documentation </mailer >`.
0 commit comments