Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix error - move smtp to global
  • Loading branch information
FrankQixiangGao committed Oct 21, 2022
commit ceaa3b74f143e811d8dcdbe276b95ab965077230
9 changes: 5 additions & 4 deletions apps/pushnotification/smtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
import os
from dotenv import load_dotenv, find_dotenv

port = 465 # For starttls
smtp_server = "smtp.gmail.com"
sender_email = "[email protected]"
subject = "Message from Ticketmaster Ticket-Tracker"



def send_email(to_email, message):

load_dotenv(find_dotenv())

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

message = """\
Subject: Hi there
Expand Down