Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Tim Chase Newsgroups: comp.lang.python Subject: Re: Python email issues Date: Tue, 26 Apr 2016 05:41:14 -0500 Lines: 20 Message-ID: References: <20160426054114.10a9c963@bigbox.christie.dr> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de y6hVF5H7wl4fhSqazIE2qwc2ugVaz5yZuIY8ABbDyaVw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; '"""': 0.05; 'rfc': 0.09; 'headers': 0.15; 'properly': 0.15; '"""\\': 0.16; '"test"': 0.16; '-tkc': 0.16; 'body)': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'smtplib': 0.16; 'subject:issues': 0.16; 'wrote:': 0.16; 'trying': 0.22; "python's": 0.23; 'header:In- Reply-To:1': 0.24; "doesn't": 0.26; 'creating': 0.30; "i'd": 0.31; 'subject:': 0.35; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'charset:us-ascii': 0.37; 'sure': 0.39; 'from:': 0.39; 'to:addr:python.org': 0.40; 'body': 0.61; 'email addr:gmail.com': 0.62; 'between': 0.65; 'received:10.94': 0.84; 'received:23': 0.84; 'subject,': 0.84 X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh|x-authuser|tim@thechases.com X-MailChannels-Auth-Id: wwwh X-MC-Loop-Signature: 1461667494636:2165850863 X-MC-Ingress-Time: 1461667494635 In-Reply-To: X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) X-AuthUser: tim@thechases.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <20160426054114.10a9c963@bigbox.christie.dr> X-Mailman-Original-References: Xref: csiph.com comp.lang.python:107648 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