get user for email server also from ENV
This commit is contained in:
parent
6bd8fa3aab
commit
86548bb750
|
@ -48,7 +48,7 @@ class Plugin(PyExecPlugin):
|
|||
self.defaults = self.getDefaults(self.protocol)
|
||||
self.server = self.getConfig(config, "server")
|
||||
self.port = self.getConfig(config, "port")
|
||||
self.user = self.getConfig(config, "user")
|
||||
self.user = os.environ.get('smtp_user', self.getConfig(config, "user"))
|
||||
self.password = os.environ.get('smtp_pass', self.getConfig(config, "password"))
|
||||
|
||||
logging.getLogger("pyexec").debug("Parsed config" + self.password)
|
||||
|
|
Loading…
Reference in New Issue