Commit f181ddce authored by Imran Hussain's avatar Imran Hussain
Browse files

make cc not a magic number

parent 2c4300c5
......@@ -106,16 +106,17 @@ def sendReminderEmail(listofpeeps):
data = data.replace("{$peoples}",str(listofpeeps))
sender = "staff@sucs.org"
receiver = "exec@sucs.org"
cc = "logs@sucs.org"
message = MIMEMultipart()
message['From'] = sender
message['To'] = receiver
message['CC'] = "logs@sucs.org"
message['Cc'] = cc
message['Subject'] = 'Renewal Reminder Sent Out'
messageBody = MIMEText(data, 'plain', "UTF-8")
message.attach(messageBody)
smtpConn = smtplib.SMTP('localhost')
smtpConn.sendmail(sender, receiver, message.as_string())
smtpConn.sendmail(sender, receiver + "," + cc, message.as_string())
smtpConn.quit()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment