Skip to content

Commit

Permalink
Update notification.py
Browse files Browse the repository at this point in the history
  • Loading branch information
satyam-seth authored May 23, 2021
1 parent 8f4d61f commit a3ee031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions account/data/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def notify_record(reg_id):
s=smtplib.SMTP('smtp.gmail.com', 587)
s.starttls()
try:
s.login("[email protected]", "astered@12345")
s.login("[email protected]", "password")
except:
return
SUBJECT=f'D-52 Record Entry Alert {data.id}'
Expand Down Expand Up @@ -47,4 +47,4 @@ def notify_water(reg_id):
message = 'Subject: {}\n\n{}'.format(SUBJECT, TEXT)
for receiver in receivers:
s.sendmail("[email protected]", receiver, message)
s.quit()
s.quit()

0 comments on commit a3ee031

Please sign in to comment.