I am trying to send an email with a subject, i have the email working but unable to get the subject working, what can I do to fix this? This is the code that I have:
fromaddr = ("[email protected]")
toaddrs = (emailAdd1)
subject1 = ("Update")
msg = (body2)
username = '[email protected]'
password = 'password'
server = smtplib.SMTP('smtp.gmail.com:587')
server.starttls()
server.login(username,password)
server.sendmail(fromaddr, toaddrs, msg)
server.quit()