import smtplib import email import time from email.mime.base import MIMEBase from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from os import listdir def send(rec_list,subject="",body=""): msg = MIMEMultipart() msg["From"] = "globalists@condorbs.net" msg["To"] = ",".join(rec_list) msg["Subject"] = "[MNeural] "+subject msg['Message-ID'] = f"" body="Visita el siguiente link para reestablecer tu password "+body msg.attach(MIMEText(body,"plain","utf-8")) with smtplib.SMTP("smtp.condorbs.net",587) as server: server.starttls() server.login("globalists@condorbs.net","No-BlaCk3") server.send_message(msg)