main: Email test 3
This commit is contained in:
parent
cb849004b7
commit
2209e03158
@ -275,20 +275,11 @@ def stripeapi():
|
||||
context = ssl.create_default_context()
|
||||
with smtplib.SMTP_SSL(host, port, context=context) as server:
|
||||
server.login(user, password)
|
||||
message = """From: Hosting <""" + from_email + """>
|
||||
To: """ + email + """
|
||||
Subject: Your 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
|
||||
|
||||
"""
|
||||
message = "From: Hosting <" + from_email + ">\nTo: " + email + \
|
||||
"\nSubject: Your Licence key\n\nHello,\n\n"\
|
||||
+"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"\
|
||||
+"Your licence key is: " + licence_key +"\nThanks,\nHNSHosting"
|
||||
|
||||
server.sendmail(from_email, email, message)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user