Python email issues
Tim Chase
python.list at tim.thechases.com
Tue Apr 26 06:41:14 EDT 2016
On 2016-04-25 22:37, pannis2013 at gmail.com wrote:
> I am trying send email through smtplib
> body = "test"
> message = """\
> From: %s
> To: %s
> Subject: %s
> %s
> """ % (FROM, ", ".join(TO), SUBJECT, body)
Doesn't the email RFC require a blank line between the headers and
the body of the message?
I'd start by using Python's built-in tools for creating message
bodies to make sure that the message is properly composed.
-tkc
More information about the Python-list
mailing list