<gh_stars>0
# pylint: disable=invalid-name
import smtplib
from email import encoders
from email.mime.base import MIMEBase
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText

def send_email():
    port = 587
    smtp_server = "smtp.gmail.com"
    login = "<EMAIL>" 
    password = "" 

    subject = "Selenium Test Report results"
    sender_email = "<EMAIL>"
    receiver_email = [  "<EMAIL>"]

    message = MIMEMultipart()
    message["From"] = sender_email
    message["To"] = receiver_email


    html = open("reports/test_report.html")
    message = MIMEText(html.read(), 'html')
    message["Subject"] = subject

    text = message.as_string()

    # send your email
    with smtplib.SMTP("smtp.gmail.com", 587) as server:
        server.starttls()
        server.login(login, password)
        server.sendmail(sender_email, receiver_email, text)

    print('Sent')

# pylint: disable=invalid-name
import smtplib
from email import encoders
from email.mime.base import MIMEBase
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText

def send_email():
    port = 587
    smtp_server = "smtp.gmail.com"
    login = "<EMAIL>" 
    password = "" 

    subject = "Selenium Test Report results"
    sender_email = "<EMAIL>"
    receiver_email = [  "<EMAIL>"]

    message = MIMEMultipart()
    message["From"] = sender_email
    message["To"] = receiver_email


    html = open("reports/test_report.html")
    message = MIMEText(html.read(), 'html')
    message["Subject"] = subject

    text = message.as_string()

    # send your email
    with smtplib.SMTP("smtp.gmail.com", 587) as server:
        server.starttls()
        server.login(login, password)
        server.sendmail(sender_email, receiver_email, text)

    print('Sent')
# pylint: disable=invalid-name # send your email