diff --git a/pyexecplugins/Mail.py b/pyexecplugins/Mail.py index 1faf913..38e368e 100644 --- a/pyexecplugins/Mail.py +++ b/pyexecplugins/Mail.py @@ -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)