| Line 77... |
Line 77... |
| 77 |
msg = ''.join(MESSAGE)
|
77 |
msg = ''.join(MESSAGE)
|
| 78 |
smtpServer = smtplib.SMTP('localhost')
|
78 |
smtpServer = smtplib.SMTP('localhost')
|
| 79 |
smtpServer.set_debuglevel(1)
|
79 |
smtpServer.set_debuglevel(1)
|
| 80 |
msg = MIMEText(msg)
|
80 |
msg = MIMEText(msg)
|
| 81 |
sender = 'inventory-monitor@shop2020.in'
|
81 |
sender = 'inventory-monitor@shop2020.in'
|
| 82 |
recipients = ['rajneesh.arora@shop2020.in','rajveer.singh@shop2020.in','kshitij.sood@shop2020.in','amar.kumar@shop2020.in',
|
82 |
recipients = ['rajneesh.arora@shop2020.in','rajveer.singh@shop2020.in','kshitij.sood@shop2020.in','manish.sharma@shop2020.in',
|
| 83 |
'chaitnaya.vats@shop2020.in','khushal.bhatia@shop2020.in','chandan.kumar@shop2020.in','manoj.kumar@shop2020.in']
|
83 |
'chaitnaya.vats@shop2020.in','khushal.bhatia@shop2020.in','chandan.kumar@shop2020.in','manoj.kumar@shop2020.in']
|
| 84 |
msg['Subject'] = "Warehouse Inventory Monitor"
|
84 |
msg['Subject'] = "Warehouse Inventory Monitor"
|
| 85 |
msg['From'] = sender
|
85 |
msg['From'] = sender
|
| 86 |
msg['To'] = ", ".join(recipients)
|
86 |
msg['To'] = ", ".join(recipients)
|
| 87 |
|
87 |
|