Skip to content

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