mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-03 15:56:17 +00:00
Fix: Add subject variable to allow test email
This commit is contained in:
@@ -1310,6 +1310,7 @@ def API_Email_Send():
|
|||||||
if "Receiver" not in data.keys() or "Subject" not in data.keys():
|
if "Receiver" not in data.keys() or "Subject" not in data.keys():
|
||||||
return ResponseObject(False, "Please at least specify receiver and subject")
|
return ResponseObject(False, "Please at least specify receiver and subject")
|
||||||
body = data.get('Body', '')
|
body = data.get('Body', '')
|
||||||
|
subject = data.get('Subject','')
|
||||||
download = None
|
download = None
|
||||||
if ("ConfigurationName" in data.keys()
|
if ("ConfigurationName" in data.keys()
|
||||||
and "Peer" in data.keys()):
|
and "Peer" in data.keys()):
|
||||||
|
Reference in New Issue
Block a user