Friday, 23 September 2016

Python SMTP sendmail no subject line

message = 'Subject: %s\n\n%s' % (SUBJECT, TEXT)
and then:

server = smtplib.SMTP(SERVER)
server.sendmail(FROM, TO, message)
server.quit()

No comments:

Post a Comment

Search