Whenever I try to use sendmail(sender,reciever,message)
, it sends the email successfully, and the subject line is fine, but the 'body' of the e-mail is always missing.
Here is my full code:
s = smtplib.SMTP("smtp.gmail.com",587)
s.ehlo()
s.starttls()
s.login(sender,password)
message = """From %s
Subject: %s
This is the body part""" % (sender,subject)
s.sendmail(sender,reciever,message)
s.quit()
Why is the body not being received?