配置smtp端口为25,准备生产环境部署
This commit is contained in:
@@ -92,8 +92,8 @@ def check_mailbox_emails(mailbox_id):
|
|||||||
print(f"查询失败: {str(e)}")
|
print(f"查询失败: {str(e)}")
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
# 邮箱ID - testaa@nosqli.com 的ID应该是2
|
# 邮箱ID - testaa@nosqli.com 的ID应该是1
|
||||||
mailbox_id = 2
|
mailbox_id = 1
|
||||||
|
|
||||||
print(f"检查邮箱ID {mailbox_id} 的邮件...")
|
print(f"检查邮箱ID {mailbox_id} 的邮件...")
|
||||||
check_mailbox_emails(mailbox_id)
|
check_mailbox_emails(mailbox_id)
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ def send_verification_email(smtp_host, smtp_port, to_email):
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# SMTP服务器设置
|
# SMTP服务器设置
|
||||||
smtp_host = 'localhost' # 本地SMTP服务器
|
smtp_host = 'localhost' # 本地SMTP服务器
|
||||||
smtp_port = 3825 # SMTP端口
|
smtp_port = 25 # SMTP端口
|
||||||
|
|
||||||
# 收件人邮箱
|
# 收件人邮箱
|
||||||
to_email = 'testaa@nosqli.com'
|
to_email = 'testaa@nosqli.com'
|
||||||
|
|||||||
Reference in New Issue
Block a user