@@ -18,11 +18,15 @@ a mailer. It is also possible to configure several mailers (see
18
18
Configuration
19
19
-------------
20
20
21
+ * `url `_
21
22
* `transport `_
22
23
* `username `_
23
24
* `password `_
24
25
* `host `_
25
26
* `port `_
27
+ * `timeout `_
28
+ * `source_ip `_
29
+ * `local_domain `_
26
30
* `encryption `_
27
31
* `auth_mode `_
28
32
* `spool `_
@@ -37,6 +41,15 @@ Configuration
37
41
* `disable_delivery `_
38
42
* `logging `_
39
43
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
+
40
53
transport
41
54
~~~~~~~~~
42
55
79
92
The port when using ``smtp `` as the transport. This defaults to 465 if encryption
80
93
is ``ssl `` and 25 otherwise.
81
94
95
+ timeout
96
+ ~~~~~~~
97
+
98
+ **type **: ``string ``
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
+
82
116
encryption
83
117
~~~~~~~~~~
84
118
@@ -191,6 +225,14 @@ logging
191
225
If true, Symfony's data collector will be activated for Swift Mailer and
192
226
the information will be available in the profiler.
193
227
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
+
194
236
Full Default Configuration
195
237
--------------------------
196
238
0 commit comments