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 282d662

Browse filesBrowse files
committed
[Mailer] add ability to disable the TLS peer verification via DSN
1 parent a26578d commit 282d662
Copy full SHA for 282d662

File tree

1 file changed

+11
-0
lines changed
Filter options

1 file changed

+11
-0
lines changed

‎components/mailer.rst

Copy file name to clipboardExpand all lines: components/mailer.rst
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,17 @@ 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+
Disable TLS peer verification
146+
-----------------------------
147+
148+
Symfony's mailer supports TLS peer verification by default, but in some cases,
149+
this verification shouldn't be done, like if the SMTP server has a self signed
150+
certificate.
151+
152+
In such case, a parameter can be used in the DSN::
153+
154+
$dsn = 'smtp://user:pass@smtp.example.com?verify_peer=false'
155+
145156
Sending emails asynchronously
146157
-----------------------------
147158

0 commit comments

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