mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-03 15:56:17 +00:00
@@ -11,8 +11,8 @@ class EmailSender:
|
|||||||
def __init__(self, DashboardConfig):
|
def __init__(self, DashboardConfig):
|
||||||
self.smtp = None
|
self.smtp = None
|
||||||
self.DashboardConfig = DashboardConfig
|
self.DashboardConfig = DashboardConfig
|
||||||
if not os.path.exists('../attachments'):
|
if not os.path.exists('./attachments'):
|
||||||
os.mkdir('../attachments')
|
os.mkdir('./attachments')
|
||||||
|
|
||||||
def Server(self):
|
def Server(self):
|
||||||
return self.DashboardConfig.GetConfig("Email", "server")[1]
|
return self.DashboardConfig.GetConfig("Email", "server")[1]
|
||||||
|
Reference in New Issue
Block a user