Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #107648

Re: Python email issues

From Tim Chase <python.list@tim.thechases.com>
Newsgroups comp.lang.python
Subject Re: Python email issues
Date 2016-04-26 05:41 -0500
Message-ID <mailman.103.1461667504.32212.python-list@python.org> (permalink)
References <f4153463-3201-4673-a214-d34d24210409@googlegroups.com> <20160426054114.10a9c963@bigbox.christie.dr>

Show all headers | View raw


On 2016-04-25 22:37, pannis2013@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


Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Python email issues pannis2013@gmail.com - 2016-04-25 22:37 -0700
  Re: Python email issues Tim Chase <python.list@tim.thechases.com> - 2016-04-26 05:41 -0500

csiph-web