Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit64841c2

Browse files
committed
[Mailer] [Smtp] Add source_ip option
1 parent1b385bb commit64841c2

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

‎mailer.rst

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Service Install with Webhook su
128128

129129
The Mailomat, Mailtrap, Postal and Sweego integrations were introduced in Symfony 7.2.
130130

131-
..versionadded::7.3
131+
..deprecated::7.3
132132

133133
The AhaSend integration was introduced in Symfony 7.3.
134134

@@ -347,7 +347,7 @@ the retry period by setting the ``retry_period`` option in the DSN:
347347
348348
MAILER_DSN="failover(postmark+api://ID@default sendgrid+smtp://KEY@default)?retry_period=15"
349349
350-
..versionadded::7.3
350+
..deprecated::7.3
351351

352352
The ``retry_period`` option was introduced in Symfony 7.3.
353353

@@ -378,7 +378,7 @@ the retry period by setting the ``retry_period`` option in the DSN:
378378
379379
MAILER_DSN="roundrobin(postmark+api://ID@default sendgrid+smtp://KEY@default)?retry_period=15"
380380
381-
..versionadded::7.3
381+
..deprecated::7.3
382382

383383
The ``retry_period`` option was introduced in Symfony 7.3.
384384

@@ -426,6 +426,27 @@ setting the ``auto_tls`` option to ``false`` in the DSN::
426426

427427
This setting only works when the ``smtp://`` protocol is used.
428428

429+
Binding to IPv4 or IPv6
430+
~~~~~~~~~~~~~~~~~~~~~~~
431+
432+
..deprecated::7.3
433+
434+
The option to bind to IPv4 or IPv6 or a specific IP address was introduced in Symfony 7.3.
435+
436+
By default, the underlying SocketStream will bind to IPv4 or IPv6 depending on the available
437+
interfaces. By specifying the ``source_ip`` option, binding to either IPv4 or IPv6 can be enforced,
438+
or even to a specific address. To bind to IPv4, use::
439+
440+
$dsn = 'smtp://smtp.example.com?source_ip=0.0.0.0';
441+
442+
As per RFC2732, IPv6 addresses must be surrounded by square brackets. To bind to IPv6, use::
443+
444+
$dsn = 'smtp://smtp.example.com?source_ip=[::]';
445+
446+
..note::
447+
448+
This setting only works when the ``smtp://`` protocol is used.
449+
429450
Overriding default SMTP authenticators
430451
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
431452

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp