From cb849004b7923e64579d90461a59b8964f2dc359 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 24 Aug 2023 17:05:01 +1000 Subject: [PATCH] main: Added info to email --- master/main.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/master/main.py b/master/main.py index 833ec47..b3feea6 100644 --- a/master/main.py +++ b/master/main.py @@ -275,10 +275,20 @@ def stripeapi(): context = ssl.create_default_context() with smtplib.SMTP_SSL(host, port, context=context) as server: server.login(user, password) - message = """\ + message = """From: Hosting <""" + from_email + """> + To: """ + email + """ Subject: Your Licence key - Your licence key is: """ + licence_key + Hello, + This email contains your licence key for your new wordpress site. + You can redeem this key via the discord bot or api. + + Your licence key is: """ + licence_key + """ + + Thanks, + HNSHosting + + """ server.sendmail(from_email, email, message)