Skip to content

Commit 28a391a

Browse files
Livdajaviereguiluz
authored andcommitted
[Mailer] add ability to disable the TLS peer verification via DSN
1 parent a26578d commit 28a391a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

components/mailer.rst

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