Skip to content

Commit b372ace

Browse files
committed
Add admin email to CC for email messages
1 parent 9837e60 commit b372ace

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

api/API/files.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ def create_message(subject, recipients, body):
3030
username_email(s) - Emails of the recipients
3131
body - The body of the email
3232
'''
33-
33+
parameters = getCurrentParameters()
34+
adminEmail = parameters.staffsupport_id + "@berea.edu"
3435
msg = Message(subject,
3536
sender=app.config['MAIL_DEFAULT_SENDER'],
36-
recipients=[recipients]) #create a message instance
37+
recipients=[recipients],
38+
cc=[adminEmail]) #create a message instance
3739
msg.html = body
3840
return msg

0 commit comments

Comments
 (0)