my friend and I have been coding an email sender, but we can't send a subject with the email if you could help; much appreciated:
import smtplib
def send_email(send_to, subject, message):
server = smtplib.SMTP_SSL('smtp.gmail.com', 465)
server.login("*******", "******")
server.sendmail('******', send_to, message, subject)
server.quit()
target = input('Who are you sending the email to? ')
subj = input('What is your subject? ')
body = input('Enter the message you want to send: ')
send_email(target, subj, body)
except SMTPException:
print("Error: unable to send email")