import smtplib
import base64
from email.message import EmailMessage
import ssl


addressee = "allanlockwoodsmith@gmail.com"
email_address = "vikingindustries2023@gmail.com"
email_password = b'dGFvZSBlZnluIHF2dmwgZnZ4eQ=='
bitpassword = base64.b64decode(email_password)
email_password = bitpassword.decode('utf-8')

print(ssl.OPENSSL_VERSION)
print("Sending Message")                   
msg = EmailMessage()
msg['Subject'] = "Played Track Mis-match Found"
msg['From'] = email_address
msg['To'] = addressee
msg.set_content("This is a test email \n\n DO NOT REPLY TO THIS EMAIL IT IS NOT MONITORED!")

with smtplib.SMTP_SSL('smtp.gmail.com', 465) as smtp:
    smtp.login(email_address, email_password)
    smtp.send_message(msg)