🚧 add ehlo command
This commit is contained in:
parent
45696f9d7d
commit
249be53a82
1 changed files with 1 additions and 0 deletions
|
@ -99,6 +99,7 @@ The link will be valid for 7 days.""".format(os.getenv("REGISTRATION_URL") + res
|
||||||
try:
|
try:
|
||||||
# Connect to the SMTP server
|
# Connect to the SMTP server
|
||||||
server = smtplib.SMTP(os.getenv("SMTP_HOSTNAME"), os.getenv("SMTP_PORT"))
|
server = smtplib.SMTP(os.getenv("SMTP_HOSTNAME"), os.getenv("SMTP_PORT"))
|
||||||
|
server.ehlo()
|
||||||
server.starttls() # Secure the connection
|
server.starttls() # Secure the connection
|
||||||
server.login(os.getenv("SMTP_USERNAME"), os.getenv("SMTP_PASSWORD")) # Login to the server
|
server.login(os.getenv("SMTP_USERNAME"), os.getenv("SMTP_PASSWORD")) # Login to the server
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue