forked from asmbly-makerspace/NeonIntegrations
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAsmblyMessageFactory.py
More file actions
40 lines (28 loc) · 1.03 KB
/
Copy pathAsmblyMessageFactory.py
File metadata and controls
40 lines (28 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from email.mime.text import MIMEText
commonMessageFooter = '''
- Asmbly AdminBot
----------
To ensure message delivery, please add notification@asmbly.org to your address book
Do not reply to this message, as this email box is not monitored. To contact Asmbly,
please email membership@asmbly.org'''
def getOpenPathEnableMessage(email, name):
msg = MIMEText(f'''
{name},
As of now, your access to the Asmbly workshop is enabled. Please email membership@asmbly.org
if you have any questions about your OpenPath credentials.
Happy Making!
{commonMessageFooter}
''')
msg['To'] = email
msg['Subject'] = "Your Asmbly Facility Access is Enabled"
return msg
def getOpenPathDisableMessage(email, name):
msg = MIMEText(f'''
{name},
As of now, your access to the Asmbly workshop is disabled.
If you feel this was in error, please email membership@asmbly.org.
{commonMessageFooter}
''')
msg['To'] = email
msg['Subject'] = "Your Asmbly Facility Access is Disabled"
return msg