Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #61788

Using pythons smtp server

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 <vincent@vincentdavis.com>
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 <vincent@vincentdavis.net>
Date Thu, 12 Dec 2013 18:01:58 -0700
Subject Using pythons smtp server
To "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4046.1386908855.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Using pythons smtp server Vincent Davis <vincent@vincentdavis.net> - 2013-12-12 18:01 -0700
  Re: Using pythons smtp server Grant Edwards <invalid@invalid.invalid> - 2013-12-13 16:40 +0000
    Re: Using pythons smtp server Vincent Davis <vincent@vincentdavis.net> - 2013-12-13 10:13 -0700
    Re: Using pythons smtp server Chris Angelico <rosuav@gmail.com> - 2013-12-14 05:15 +1100
    Re: Using pythons smtp server Vincent Davis <vincent@vincentdavis.net> - 2013-12-13 11:27 -0700
      Re: Using pythons smtp server Grant Edwards <invalid@invalid.invalid> - 2013-12-13 20:33 +0000
    Re: Using pythons smtp server Chris Angelico <rosuav@gmail.com> - 2013-12-14 05:29 +1100
    Re: Using pythons smtp server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-12-13 19:46 -0500
      Re: Using pythons smtp server Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2013-12-14 16:48 +0100
        Re: Using pythons smtp server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-12-14 12:59 -0500

csiph-web