2.1.31 check problem send mail
This commit is contained in:
@@ -124,7 +124,7 @@ def send_mail_by_SMTPlib(sets, subject, from_email, to_init, html_content, smtp_
|
|||||||
try:
|
try:
|
||||||
# context = ssl.create_default_context()
|
# context = ssl.create_default_context()
|
||||||
|
|
||||||
print('connect to mail server')
|
print(f'connect to mail server smtp_server={str(smtp_server)} smtp_port={str(smtp_port)}')
|
||||||
|
|
||||||
mail_lib = smtplib.SMTP(smtp_server, smtp_port, timeout=60)
|
mail_lib = smtplib.SMTP(smtp_server, smtp_port, timeout=60)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user