Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.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.073 X-Spam-Evidence: '*H*': 0.85; '*S*': 0.00; 'received:134': 0.05; 'pretend': 0.09; 'subject:script': 0.09; 'subject:using': 0.09; "system's": 0.09; 'python': 0.11; "wouldn't": 0.14; 'command.': 0.16; 'eliminating': 0.16; 'hoping,': 0.16; 'quirks': 0.16; 'subject:send': 0.16; 'troll': 0.16; 'subject:python': 0.16; 'header:User-Agent:1': 0.23; 'headers': 0.24; 'least': 0.26; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; 'robert': 0.30; 'code': 0.31; 'worked': 0.33; 'url:python': 0.33; 'guess': 0.33; 'trouble': 0.34; 'subject:the': 0.34; 'but': 0.35; 'google': 0.35; 'replies': 0.36; 'url:org': 0.36; 'operating': 0.37; 'project': 0.37; 'list.': 0.37; 'architecture': 0.38; 'feed': 0.38; 'question,': 0.38; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'identify': 0.61; 'strictly': 0.61; 'simply': 0.61; 'simple': 0.61; 'discuss': 0.62; 'interest': 0.64; 'dont': 0.67; 'judge': 0.68; 'sound': 0.68; 'receive': 0.70; 'hoping': 0.75; 'antispam': 0.84; 'avoid.': 0.84; 'pardon': 0.84; 'reply!': 0.84; 'subject:via': 0.84 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqAEAMDuO1KGuA9G/2dsb2JhbABRCoM/wgaBNIMZAQEEAXgGCwsSDxYPCQMCAQIBNw4TCAKHeQYMsVqJE44kCoFAFoQIA5d8gS+EbotYgyaBbw Date: Fri, 20 Sep 2013 08:48:26 +0200 From: Antoon Pardon User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Tryign to send mail via a python script by using the local MTA References: <305a2044-a13e-47f8-9cc1-9e3482424616@googlegroups.com> <5236BD75.5080904@rece.vub.ac.be> <5236C4B7.3070601@rece.vub.ac.be> <52379718$0$29988$c3e8da3$5496439d@news.astraweb.com> <5238330F.2060200@modelnine.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 36 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1379659776 news.xs4all.nl 15901 [2001:888:2000:d::a6]:58546 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54458 Op 20-09-13 05:56, Jake Angulo schreef: > Up Robert Kern's reply! > > I was waiting for smtplib to > be mentioned... finally! Instead people simply answer philosophically. > I dont want to judge whether OP is a troll or not - but i found a lot > of arrogant replies here. That is nice. You don't like to judge the OP but you seem to have no trouble judging others > I have also worked on an antispam project > before, and see through the intents of the OP, but I do not pretend to > be a moralist. That doesn't sound right after you judged other replies to be arrogant. > I was hoping we would strictly discuss code or software > architecture here, not morality. Simple question, simple answer pls, in > the interest of the Python list. Well I was hoping, we wouldn't be plagued by trolls or help-vampires or at least that other wouldn't (spoon) feed them. I guess we can always hope. > To the OP: > > You might want to google smtplib, and use that instead of os calling a > system command. Smtplib takes care of all the operating system's quirks > for you, and still uses the os native sendmail program. But that won't help in eliminating all the headers Nikos would like to avoid. Like the receive line that will identify his host. -- Antoon Pardon