import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText # Datos del servidor y cuenta de correo smtp_server = "mail.srmconsulting.es" smtp_port = 587 username = "marketing@srmconsulting.es" password = "Ipsilum010" # Crear el mensaje msg = MIMEMultipart("alternative") msg['From'] = username msg['To'] = "vitofttm@gmail.com" # Cambia esto por el destinatario real msg['Subject'] = "Acceder a Ipsilum" # Cuerpo del mensaje en HTML html = """
Acceso directo a Ipsilum