diff --git a/heimdallr/channel/email.py b/heimdallr/channel/email.py index d7575f1..eb1402f 100644 --- a/heimdallr/channel/email.py +++ b/heimdallr/channel/email.py @@ -12,6 +12,7 @@ SUFFIX_EMAIL_PASSWORD, SUFFIX_EMAIL_PORT, SUFFIX_EMAIL_SENDER, + SUFFIX_EMAIL_STARTTLS, SUFFIX_EMAIL_TO, SUFFIX_EMAIL_USER, ) @@ -56,7 +57,7 @@ def _build_channel(self): self.password = get_config_str(self.get_name(), SUFFIX_EMAIL_PASSWORD, "") self.sender = get_config_str(self.get_name(), SUFFIX_EMAIL_SENDER, "Heimdallr") self.to = get_config_str(self.get_name(), SUFFIX_EMAIL_TO, "") - self.starttls = get_config_str(self.get_name(), "starttls", "False") == "True" + self.starttls = get_config_str(self.get_name(), SUFFIX_EMAIL_STARTTLS, "False") == "True" if self.host == "" or self.user == "" or self.password == "" or self.to == "": raise ParamException("email host, user, password or to not set")