Skip to content

Commit ceaa3b7

Browse files
fix error - move smtp to global
1 parent 3f84aba commit ceaa3b7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

apps/pushnotification/smtp.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@
33
import os
44
from dotenv import load_dotenv, find_dotenv
55

6+
port = 465 # For starttls
7+
smtp_server = "smtp.gmail.com"
8+
sender_email = "[email protected]"
9+
subject = "Message from Ticketmaster Ticket-Tracker"
10+
611

712

813
def send_email(to_email, message):
914

1015
load_dotenv(find_dotenv())
1116

12-
port = 465 # For starttls
13-
smtp_server = "smtp.gmail.com"
14-
sender_email = "[email protected]"
1517
receiver_email = to_email
1618
password = "?????????" # The password is stored in local
17-
subject = "Message from Ticketmaster Ticket-Tracker"
1819

1920
message = """\
2021
Subject: Hi there

0 commit comments

Comments
 (0)