main: Email test 3
All checks were successful
Build Docker / Build Bot (push) Successful in 21s
Build Docker / Build Master (push) Successful in 25s

This commit is contained in:
Nathan Woodburn 2023-08-24 17:11:42 +10:00
parent cb849004b7
commit 2209e03158
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -275,20 +275,11 @@ def stripeapi():
context = ssl.create_default_context() context = ssl.create_default_context()
with smtplib.SMTP_SSL(host, port, context=context) as server: with smtplib.SMTP_SSL(host, port, context=context) as server:
server.login(user, password) server.login(user, password)
message = """From: Hosting <""" + from_email + """> message = "From: Hosting <" + from_email + ">\nTo: " + email + \
To: """ + email + """ "\nSubject: Your Licence key\n\nHello,\n\n"\
Subject: Your Licence key +"This email contains your licence key for your new wordpress site.\n" \
+"You can redeem this key via the discord bot or api.\n\n"\
Hello, +"Your licence key is: " + licence_key +"\nThanks,\nHNSHosting"
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) server.sendmail(from_email, email, message)