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

[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

Conversation

Livda
Copy link
Contributor

@Livda Livda commented Jan 28, 2020

Documentation for the PR symfony/symfony#35262

fabpot added a commit to symfony/symfony that referenced this pull request Jan 29, 2020
…ion via DSN (Aurélien Fontaine)

This PR was squashed before being merged into the 5.1-dev branch (closes #35262).

Discussion
----------

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

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix
| License       | MIT
| Doc PR        | symfony/symfony-docs/pull/12997

Add the ability to disable the peer TLS verification with the DNS when using `EsmtpTransport` like this :

```
MAILER_DSN=smtp://foo@default?verify_peer=false
```

By default the verification is enabled

Commits
-------

4b854da [Mailer] add ability to disable the TLS peer verification via DSN
symfony-splitter pushed a commit to symfony/mailer that referenced this pull request Jan 29, 2020
…ion via DSN (Aurélien Fontaine)

This PR was squashed before being merged into the 5.1-dev branch (closes #35262).

Discussion
----------

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

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix
| License       | MIT
| Doc PR        | symfony/symfony-docs/pull/12997

Add the ability to disable the peer TLS verification with the DNS when using `EsmtpTransport` like this :

```
MAILER_DSN=smtp://foo@default?verify_peer=false
```

By default the verification is enabled

Commits
-------

4b854da73e [Mailer] add ability to disable the TLS peer verification via DSN
Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like if the SMTP server has a self signed certificate

You should still verify it. But if you are lazy like I am, then you are most likely to ignore it with this new settings =).

I think this should be rephrased.


I agree that this should be a separate paragraph, because many SMTP related transports extends from EstmpTransport which brings this feature.

Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

(Sorry for the multiple PR reviews)

components/mailer.rst Outdated Show resolved Hide resolved
components/mailer.rst Outdated Show resolved Hide resolved
components/mailer.rst Outdated Show resolved Hide resolved
@OskarStark OskarStark added Waiting Code Merge Docs for features pending to be merged and removed Waiting Code Merge Docs for features pending to be merged labels Jan 29, 2020
@javiereguiluz javiereguiluz added this to the 5.1 milestone Jan 30, 2020
@javiereguiluz javiereguiluz merged commit 28a391a into symfony:master Jan 30, 2020
@javiereguiluz
Copy link
Member

@Livda thanks for this contribution (and for contributing the feature too). We did some rewords while merging and added the missing versionadded:: 5.1 directive, but your original contribution was great.

Congrats on your first Symfony Docs contribution!

symfony-splitter pushed a commit to symfony/mailer that referenced this pull request Sep 28, 2021
…ion via DSN (Aurélien Fontaine)

This PR was squashed before being merged into the 5.1-dev branch (closes #35262).

Discussion
----------

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

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix
| License       | MIT
| Doc PR        | symfony/symfony-docs/pull/12997

Add the ability to disable the peer TLS verification with the DNS when using `EsmtpTransport` like this :

```
MAILER_DSN=smtp://foo@default?verify_peer=false
```

By default the verification is enabled

Commits
-------

4b854da73e [Mailer] add ability to disable the TLS peer verification via DSN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.