Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!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.179 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.69; '*S*': 0.04; 'received:209.85.219': 0.09; 'runs': 0.10; 'app': 0.19; 'basically': 0.19; 'server,': 0.19; 'to:name:python-list@python.org': 0.22; 'server.': 0.24; 'message-id:@mail.gmail.com': 0.30; 'initiate': 0.31; 'file': 0.32; 'url:python': 0.33; 'received:209.85': 0.35; 'received:google.com': 0.35; 'smtp': 0.36; 'url:org': 0.36; 'received:209': 0.37; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'day': 0.76; 'examples.': 0.84; 'shutdown': 0.84; 'subject:Using': 0.84; '8bit%:18': 0.93 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=dxWTvQGM9pj7tZA732CguOYYVxyAMcoR6SfJopgBuT4=; b=CRe7rhW3q8/82uukOrqa9yBxpCpNMZ/+tZOYfuDp3aRU36VJgpM1TBzr2H2JddTx0w Zr+hJYVGHrit5tvf04rsBfNQcLNcSJWxO3IdhTnhIxDD14MzAqLj1jb1jR8uXugCzydQ b3kISep9jfXCy/84nUp2fJNEnCJe2Q/hHl/vSty2CyhU9gjsNCCOxmFoNmTxOyrVU0Z6 ttIoqYnS4G98Wfmx6hqCcBkARqov+fhY8wWQ1VZxPGWPo5i2rUEf4Uj/ZzSeshm+VYj4 j3XZwvlJFyIaJCvewj1efWVBmPz9yhuIH2FocLhNU2H0/L3nq8jb96fWnDaSN276+WXm Wngg== X-Gm-Message-State: ALoCoQnvUlMjAmozdo1WRMmVposxvFDVW7H03yh+3FauJbBO0dw8NWLts3O+e4nGJyVsdabLn5zP X-Received: by 10.182.24.69 with SMTP id s5mr7733644obf.35.1386896539005; Thu, 12 Dec 2013 17:02:19 -0800 (PST) MIME-Version: 1.0 From: Vincent Davis Date: Thu, 12 Dec 2013 18:01:58 -0700 Subject: Using pythons smtp server To: "python-list@python.org" Content-Type: multipart/alternative; boundary=001a11c2a20c8c5c3704ed60030b X-Mailman-Approved-At: Fri, 13 Dec 2013 05:27:33 +0100 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: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1386908855 news.xs4all.nl 2833 [2001:888:2000:d::a6]:60098 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61788 --001a11c2a20c8c5c3704ed60030b Content-Type: text/plain; charset=UTF-8 I have an app that generates a file one a day and would like to email it using pythons SMTP server. http://docs.python.org/2/library/smtpd.html#smtpd.SMTPServer The documentation is kinda sparse and I cant seem to find any good examples. Basically what I want to do; when my app runs it would initiate a SMTP server, send the attachment and shutdown the SMTP after. Vincent Davis --001a11c2a20c8c5c3704ed60030b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I have an app that generates a file one a day a= nd would like to email it using pythons SMTP server.
The=C2=A0documentation=C2=A0is kinda sparse and= I cant seem to find any good examples.

=
Basic= ally=C2=A0what I want to do; when my app runs it would=C2=A0initiate=C2=A0a= SMTP server, send the=C2=A0attachment and shutdown the SMTP after.<= /div>

Vincent Davis

--001a11c2a20c8c5c3704ed60030b--