File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,17 @@ party provider:
166
166
For example, the DSN ``ses+smtp://ABC1234:abc+12/345@default `` should be
167
167
configured as ``ses+smtp://ABC1234:abc%2B12%2F345@default ``
168
168
169
+ .. caution ::
170
+
171
+ If you want to use ``ses+smtp `` transport together with :doc: `Messenger </messenger >`
172
+ to :ref: `send messages in background <mailer-sending-messages-async >`,
173
+ you need to add the ``ping_threshold `` parameter to your ``MAILER_DSN `` with
174
+ a value lower than ``10 ``: ``ses+smtp://USERNAME:PASSWORD@default?ping_threshold=9 ``
175
+
176
+ .. versionadded :: 5.4
177
+
178
+ The ``ping_threshold `` option for ``ses-smtp `` was introduced in Symfony 5.4.
179
+
169
180
.. note ::
170
181
171
182
When using SMTP, the default timeout for sending a message before throwing an
@@ -1078,6 +1089,8 @@ the final email)::
1078
1089
$email->getHeaders()->addTextHeader('X-Transport', 'alternative');
1079
1090
$mailer->send($email);
1080
1091
1092
+ .. _mailer-sending-messages-async :
1093
+
1081
1094
Sending Messages Async
1082
1095
----------------------
1083
1096
You can’t perform that action at this time.
0 commit comments