Skip to content

[Mailer] add ability to disable the TLS peer verification via DSN #12997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions components/mailer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,16 @@ The mailer will start using the first transport and if it fails, it will retry
the same delivery with the next transports until one of them succeeds (or until
all of them fail).

TLS Peer Verification
---------------------

SMTP tranports supports TLS peer verification by default, but in some cases, you
may want to turn this off. For example, in a development environment.

In such case, add the `verify_peer` parameter to the DSN::

$dsn = 'smtp://user:pass@smtp.example.com?verify_peer=false'

Sending emails asynchronously
-----------------------------

Expand Down