[SUCS Devel] [Git][sucs/accountmanager][master] make cc not a magic number
Imran Hussain
imranh at sucs.org
Sun Mar 10 14:43:05 GMT 2019
Imran Hussain pushed to branch master at sucs / accountmanager
Commits:
f181ddce by Imran Hussain at 2019-03-10T14:42:53Z
make cc not a magic number
- - - - -
1 changed file:
- sucsam.py
Changes:
=====================================
sucsam.py
=====================================
@@ -106,16 +106,17 @@ def sendReminderEmail(listofpeeps):
data = data.replace("{$peoples}",str(listofpeeps))
sender = "staff at sucs.org"
receiver = "exec at sucs.org"
+ cc = "logs at sucs.org"
message = MIMEMultipart()
message['From'] = sender
message['To'] = receiver
- message['CC'] = "logs at 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()
View it on GitLab: https://projects.sucs.org/sucs/accountmanager/commit/f181ddce96dea57784737876ec7a44d159edaede
--
View it on GitLab: https://projects.sucs.org/sucs/accountmanager/commit/f181ddce96dea57784737876ec7a44d159edaede
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20190310/e3718d6d/attachment-0001.html>
More information about the Devel
mailing list