Skip to content

Commit b52655a

Browse files
authored
Merge pull request #37 from wehrstedt/email-allow-empty-password
Allow empty password for smpt
2 parents 5c33ccf + 323e299 commit b52655a

File tree

1 file changed

+2
-2
lines changed
  • src/restic_compose_backup/alerts

1 file changed

+2
-2
lines changed

src/restic_compose_backup/alerts/smtp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def __init__(self, host, port, user, password, to):
1515
self.host = host
1616
self.port = port
1717
self.user = user
18-
self.password = password
18+
self.password = password or ""
1919
self.to = to
2020

2121
@classmethod
@@ -34,7 +34,7 @@ def create_from_env(cls):
3434

3535
@property
3636
def properly_configured(self) -> bool:
37-
return self.host and self.port and self.user and self.password and len(self.to) > 0
37+
return self.host and self.port and self.user and len(self.to) > 0
3838

3939
def send(self, subject: str = None, body: str = None, alert_type: str = 'INFO'):
4040
# send_mail("Hello world!")

0 commit comments

Comments
 (0)