Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(at': 0.03; 'python.': 0.04; '(using': 0.05; 'pop3': 0.07; 'python"': 0.07; 'python': 0.08; 'problem:': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'subject:python': 0.11; '"programming': 0.16; '1.5,': 0.16; 'amiga': 0.16; 'bieber': 0.16; 'declaimed': 0.16; 'email addr:ix.netcom.com': 0.16; 'email name:wlfraed': 0.16; 'from:addr:ix.netcom.com': 0.16; 'from:addr:wlfraed': 0.16; 'from:name:dennis lee bieber': 0.16; 'handshake': 0.16; 'lookup': 0.16; 'okay,': 0.16; 'parsed': 0.16; 'received:66.245': 0.16; 'received:dsl.mindspring.com': 0.16; 'received:mindspring.com': 0.16; 'received:wlfraed': 0.16; 'smtpd': 0.16; 'url:netcom': 0.16; 'url:wlfraed': 0.16; 'wulfraed': 0.16; 'written': 0.16; 'downloaded': 0.21; 'trying': 0.21; 'url:home': 0.21; '-0700': 0.23; 'parse': 0.23; 'subject:tutorial': 0.23; 'worked': 0.23; 'aug': 0.24; 'separate': 0.28; 'lee': 0.28; 'thu,': 0.28; 'second': 0.29; 'script': 0.29; 'header,': 0.30; 'relay': 0.30; 'subject:send': 0.30; "didn't": 0.31; 'version': 0.32; 'headers': 0.32; 'to:addr:python-list': 0.33; 'header:X-Complaints-To:1': 0.35; 'charset:us-ascii': 0.36; 'connection': 0.36; 'file': 0.36; 'created': 0.36; 'but': 0.37; 'received:org': 0.38; 'subject:: ': 0.39; 'difficult': 0.39; 'header:Mime-Version:1': 0.39; 'either': 0.39; 'subject:with': 0.39; 'to:addr:python.org': 0.39; "i'd": 0.40; 'period': 0.61; 'address': 0.61; 'emails': 0.62; 'took': 0.63; 'direct': 0.66; 'destination': 0.67; 'queued': 0.67; 'address,': 0.72; 'dennis': 0.77; 'buying': 0.81; 'bcc': 0.84; 'hybrid': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: generate and send mail with python: tutorial Date: Thu, 11 Aug 2011 23:51:33 -0700 Organization: > Bestiaria Support Staff < References: <509f6fd7-5054-4210-9ede-4e198c71e0ed@e7g2000vbw.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: user-11fb6b5.dsl.mindspring.com X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313131906 news.xs4all.nl 23982 [2001:888:2000:d::a6]:47003 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11253 On Thu, 11 Aug 2011 08:07:09 -0700 (PDT), aspineux declaimed the following in gmane.comp.python.general: > Hi I have written a tutorial about how to generate and send emails > with python. Is that really such a difficult task? Okay, I didn't really use Python for the entire creation of the message... But my first real Python program (using 1.4 or 1.5, whatever was included in the first "Programming Python" disk, for AmigaOS) was a rudimentary outgoing SMTPd which had to parse headers from message files "queued" by an ARexx script from an Amiga version of ELM, then handshake with the ISP SMTPd to relay the message onward. It took less than a week after buying the book that I had this ARexx/Python hybrid working -- and it worked better than either C-language programs I'd downloaded (at that period of time, Amiga email programs ONLY read from local spool and queued to local spool; separate programs had to be used to read POP3 and send SMTP... My first SMTP utility presumed 1) direct connection to destination address, 2) created an email file for each address -- problem: if a destination did not have a receiving SMTPd [ie, one needed to do an MX lookup instead] it would hang trying to send that message, and never process others... The second program used ISP relay -- but it only parsed the "TO:" header, and thereby failed to handshake CC and BCC destinations) -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/