This commit is contained in:
@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user