@@ -18,11 +18,15 @@ a mailer. It is also possible to configure several mailers (see
1818Configuration
1919-------------
2020
21+ * `url `_
2122* `transport `_
2223* `username `_
2324* `password `_
2425* `host `_
2526* `port `_
27+ * `timeout `_
28+ * `source_ip `_
29+ * `local_domain `_
2630* `encryption `_
2731* `auth_mode `_
2832* `spool `_
@@ -37,6 +41,15 @@ Configuration
3741* `disable_delivery `_
3842* `logging `_
3943
44+ url
45+ ~~~
46+
47+ **type **: ``string ``
48+
49+ The URL to configure swift mailer.
50+
51+ Example: ``smtp://user:pass@host:port/?timeout=60&encryption=ssl&auth_mode=login&... ``
52+
4053transport
4154~~~~~~~~~
4255
7992The port when using ``smtp `` as the transport. This defaults to 465 if encryption
8093is ``ssl `` and 25 otherwise.
8194
95+ timeout
96+ ~~~~~~~
97+
98+ **type **: ``integer ``
99+
100+ The timeout when using ``smtp `` as the transport
101+
102+ source_ip
103+ ~~~~~~~~~
104+
105+ **type **: ``string ``
106+
107+ The source IP when using ``smtp `` as the transport
108+
109+ local_domain
110+ ~~~~~~~~~~~~
111+
112+ **type **: ``string ``
113+
114+ The domain name to use in HELO command.
115+
82116encryption
83117~~~~~~~~~~
84118
@@ -191,6 +225,14 @@ logging
191225If true, Symfony's data collector will be activated for Swift Mailer and
192226the information will be available in the profiler.
193227
228+ .. tip ::
229+
230+ The following configuration options are compatible with ``%env()% `` parameters:
231+ ``url ``, ``transport ``, ``username ``, ``password ``, ``host ``,
232+ ``port ``, ``timeout ``, ``source_ip ``, ``local_domain ``,
233+ ``encryption ``, ``auth_mode ``.
234+ For details, see the :doc: `/configuration/external_parameters ` article.
235+
194236Full Default Configuration
195237--------------------------
196238
0 commit comments