配置smtp端口为25,准备生产环境部署

This commit is contained in:
huangzhenpc
2025-02-26 09:10:52 +08:00
parent aeffc4f8b8
commit c274583872
2 changed files with 3 additions and 3 deletions

View File

@@ -92,8 +92,8 @@ def check_mailbox_emails(mailbox_id):
print(f"查询失败: {str(e)}")
def main():
# 邮箱ID - testaa@nosqli.com 的ID应该是2
mailbox_id = 2
# 邮箱ID - testaa@nosqli.com 的ID应该是1
mailbox_id = 1
print(f"检查邮箱ID {mailbox_id} 的邮件...")
check_mailbox_emails(mailbox_id)

View File

@@ -67,7 +67,7 @@ def send_verification_email(smtp_host, smtp_port, to_email):
if __name__ == "__main__":
# SMTP服务器设置
smtp_host = 'localhost' # 本地SMTP服务器
smtp_port = 3825 # SMTP端口
smtp_port = 25 # SMTP端口
# 收件人邮箱
to_email = 'testaa@nosqli.com'