import smtplib


def send_email(msg):
    # Send the message via our own SMTP server.
    with smtplib.SMTP_SSL('smtp.gmail.com', 465) as s:
        # s.starttls()
        s.set_debuglevel(2)
        s.send_message(msg)

import smtplib


def send_email(msg):
    # Send the message via our own SMTP server.
    with smtplib.SMTP_SSL('smtp.gmail.com', 465) as s:
        s.send_message(msg)

Remove somore more lines related to email
Remove somore more lines related to email
