修复生产审查凭据泄露风险并增加持久投递队列
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-17 10:17:09 +08:00
1 parent 24670a3c2d
commit bf1e69f480
70 files changed
+1581 -262

No files matched your search

+3 -2
View File
@@ -1,10 +1,11 @@
from email.mime.text import MIMEText
import smtplib
import os
msg = MIMEText('hello, send by Python...', 'plain', 'utf-8')
from_addr = "admin@domain.com"
password = "admin"
password = os.environ["SMAIL_TEST_SMTP_PASSWORD"]
to_addr = "admin@domain.com"
smtp_server = "127.0.0.1"
@@ -12,4 +13,4 @@ server = smtplib.SMTP(smtp_server, 25)
server.starttls()
server.login(from_addr, password)
server.sendmail(from_addr, [to_addr], msg.as_string())
server.quit()
server.quit()