Update Email.py

Fixed #699
This commit is contained in:
Donald Zou 2025-04-25 14:08:45 +08:00
parent 510f60bdeb
commit 9fa0d91d06

View File

@ -11,8 +11,8 @@ class EmailSender:
def __init__(self, DashboardConfig):
self.smtp = None
self.DashboardConfig = DashboardConfig
if not os.path.exists('../attachments'):
os.mkdir('../attachments')
if not os.path.exists('./attachments'):
os.mkdir('./attachments')
def Server(self):
return self.DashboardConfig.GetConfig("Email", "server")[1]