Skip to content

Commit 282d662

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

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

components/mailer.rst

Lines 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)