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

Appearance settings

Commit 04a80e1

Browse filesBrowse files
committed
minor #12997 [Mailer] add ability to disable the TLS peer verification via DSN (Aurélien Fontaine)
This PR was squashed before being merged into the master branch (closes #12997). Discussion ---------- [Mailer] add ability to disable the TLS peer verification via DSN Documentation for the PR symfony/symfony#35262 Commits ------- 28a391a [Mailer] add ability to disable the TLS peer verification via DSN
2 parents 4706a49 + 28a391a commit 04a80e1
Copy full SHA for 04a80e1

File tree

1 file changed

+10
-0
lines changed
Filter options

1 file changed

+10
-0
lines changed

‎components/mailer.rst

Copy file name to clipboardExpand all lines: components/mailer.rst
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,16 @@ The mailer will start using the first transport and if it fails, it will retry
142142
the same delivery with the next transports until one of them succeeds (or until
143143
all of them fail).
144144

145+
TLS Peer Verification
146+
---------------------
147+
148+
SMTP tranports supports TLS peer verification by default, but in some cases, you
149+
may want to turn this off. For example, in a development environment.
150+
151+
In such case, add the `verify_peer` parameter to the DSN::
152+
153+
$dsn = 'smtp://user:pass@smtp.example.com?verify_peer=false'
154+
145155
Sending emails asynchronously
146156
-----------------------------
147157

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.