Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '16,': 0.03; 'subject:script': 0.09; 'subject:using': 0.09; 'python': 0.11; 'question.': 0.14; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:send': 0.16; 'there?': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'appears': 0.22; 'code,': 0.22; 'mon,': 0.24; 'looks': 0.24; 'asking': 0.27; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'getting': 0.31; 'sep': 0.31; 'subject:the': 0.34; 'received:google.com': 0.35; 'possible': 0.36; 'wrong': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; "you're": 0.61; 'subject:via': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=NnTgGN7jsic6tLpsw2LSOeEiFjEkWDKwC2kLYFs7t7I=; b=WsPi5yopU70Unp9jBfxi+kRhCYWrCoBGdtWFofBRM8Al3KENt0Wgkaanj5TSngpCuD TCSTykSITNh82ChP/uQlt07aEKJ6+xY17TUKj0XbP/eSO93bu5hRpmegJtRkaRxRkT/p jb4e1nOnak2MxvmSUPCVGqO9j52dg/9VsI9upDAhHA5b5K/A7+nPccHXHfh/AA4m5z1D wgE2jR15JpuzOVtXHaGHo9zRbiJcWDtDARHqlm2tNH5W/4HQfLv6/S19u6sQPWodzOA3 26OL4T/uMUt8nFAeZ7bKEqiz1mMIbdfl842NhIQxArIn+x6ZCiZafmzHJDfiea3IOUCZ v1Tw== MIME-Version: 1.0 X-Received: by 10.58.136.4 with SMTP id pw4mr23929975veb.10.1379280710013; Sun, 15 Sep 2013 14:31:50 -0700 (PDT) In-Reply-To: <305a2044-a13e-47f8-9cc1-9e3482424616@googlegroups.com> References: <305a2044-a13e-47f8-9cc1-9e3482424616@googlegroups.com> Date: Mon, 16 Sep 2013 07:31:49 +1000 Subject: Re: Tryign to send mail via a python script by using the local MTA From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1379280719 news.xs4all.nl 15902 [2001:888:2000:d::a6]:60205 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54191 On Mon, Sep 16, 2013 at 1:54 AM, Ferrous Cranus wrote: > Since all looks okey why the mail never gets delivered? This is not a Python question. If it were, I would be asking how you're getting _anywhere_ with that code, which appears to have IndentationErrors in it. You're also using os.system() with interpolated content. What _exactly_ is random_char() able to return? Is it possible for it to do the wrong thing there? ChrisA