Skip to content

Commit

Permalink
Update send_alert.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eli64s authored Jun 29, 2022
1 parent dff837e commit 7652b2d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions send_alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart

email = "dummy@gmail.com"
password = "abc123"
sms_gateway = "1234567890@text.att.net"
email = "xxx@gmail.com"
password = "xxx"
sms_gateway = "xxxxxxxxxx@text.att.net"

# Gmail server is used to deliver the message.
# Every email provider has a unique smtp.
Expand All @@ -21,9 +21,9 @@
msg = MIMEMultipart()
msg['From'] = email
msg['To'] = sms_gateway
msg['Subject'] = "Test\n"
body = "Hellow World\n"
msg['Subject'] = "Test Message\n"
body = "Hello World\n"
msg.attach(MIMEText(body, 'plain'))
sms = msg.as_string()
server.sendmail(email,sms_gateway, sms)
server.quit()
server.quit()

0 comments on commit 7652b2d

Please sign in to comment.