Skip to content

Commit

Permalink
Merge pull request #136 from LeslieLeung/fix/smtp-starttls
Browse files Browse the repository at this point in the history
  • Loading branch information
LeslieLeung authored Sep 22, 2024
2 parents 888a584 + 486e0a0 commit e6e514a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion heimdallr/channel/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
SUFFIX_EMAIL_PASSWORD,
SUFFIX_EMAIL_PORT,
SUFFIX_EMAIL_SENDER,
SUFFIX_EMAIL_STARTTLS,
SUFFIX_EMAIL_TO,
SUFFIX_EMAIL_USER,
)
Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit e6e514a

Please sign in to comment.