Skip to content
This repository was archived by the owner on Feb 6, 2022. It is now read-only.

Fix encryption option when using env variable #177

Conversation

mykiwi
Copy link

@mykiwi mykiwi commented May 31, 2017

Related to #170

*/
public static function validateEncryption($encryption)
{
if (!in_array($encryption, array('tls', 'ssl', null))) {
Copy link
Member

Choose a reason for hiding this comment

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

missing "true" as last arg to in_array

@mykiwi mykiwi force-pushed the fix-encryption-when-using-env-variable branch from eb26322 to f9a82c8 Compare May 31, 2017 18:01
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

👍

@fabpot
Copy link
Member

fabpot commented Jun 1, 2017

Thank you @mykiwi.

@fabpot fabpot closed this in 9ddeacb Jun 1, 2017
fabpot added a commit that referenced this pull request Jun 9, 2017
This PR was merged into the 3.0-dev branch.

Discussion
----------

Allow env values for auth_mode

This is a follow-up to #177 which allows to use env parameters for `auth_mode`

Commits
-------

dbbf420 Allow env values for auth_mode
@mauricios
Copy link

mauricios commented Dec 6, 2018

How to disable encryption using environment variable?.

Environment variables are not nullable (they are strings by design), there is no way to disable or override encryption using environment variables. I want to keep my default value as ssl for Production, but I want to disable for a development where I use a local SMTP that does not support encryption.

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

Successfully merging this pull request may close these issues.

4 participants