fix mail send error
All checks were successful
Gitea Actions Demo / deploy (push) Successful in 10s

This commit is contained in:
konjacpotato
2026-02-15 16:45:25 +08:00
parent d8e6b58014
commit fa2fb120d9

View File

@ -6,7 +6,7 @@ from log.log_manager import log
class MailManager:
def __init__(self, email: str = "Arlo", password: str = "hqorvminmnuubebf"):
def __init__(self, email: str = "1026090807@qq.com", password: str = "hqorvminmnuubebf"):
self.sender_email = email
self.server = smtplib.SMTP('smtp.qq.com', 587)
self.server.starttls() # Secure the connection
@ -15,7 +15,7 @@ class MailManager:
def send_mail(self, subject: str, content: str, receiver_email:str = "changsongd@126.com"):
message = MIMEMultipart()
message['From'] = self.sender_email
message['From'] = "Arlo"
message['To'] = receiver_email
message['Subject'] = subject
message.attach(MIMEText(content, 'plain'))