Skip to content
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

[6.x] Make it possible to disable to disable encryption via 0/false #29985

Merged
merged 2 commits into from
Sep 13, 2019

Conversation

lsmith77
Copy link
Contributor

it is not possible to set an env var to null, so its otherwise impossible to disable encryption via an env variable

this will for example make it possible to provide out of the box support for Laravel emailing on platform.sh via their bridge:
https://github.com/platformsh/laravel-bridge/blob/master/platformsh-laravel-env.php#L155

lsmith77 and others added 2 commits September 13, 2019 21:46
it is not possible to set an env var to `null`, so its otherwise impossible to disable encryption via an env variable
@taylorotwell taylorotwell merged commit b57d6bb into laravel:6.x Sep 13, 2019
@lsmith77 lsmith77 deleted the patch-1 branch September 13, 2019 19:49
@lsmith77
Copy link
Contributor Author

now that was fast :)

BTW I wonder if there are other places within laravel that should be reviewed for this type of issue.

@GrahamCampbell GrahamCampbell changed the title make it possible to disable to disable encryption via 0/false [6.x] Make it possible to disable to disable encryption via 0/false Sep 14, 2019
@sergejostir
Copy link

In case someone else comes across this. Setting encryption option to "tcp" means that the mail is sent as plain (with no encryption) ;)

Unfortunately, it is not documented, but if you look at the code, it's pretty clear:
https://github.com/swiftmailer/swiftmailer/blob/1182ede0b254b6a4f12763f48ff25a96f139ac71/lib/classes/Swift/Transport/EsmtpTransport.php#L142-L151

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants