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


Groups > comp.lang.python > #61834

Re: Using pythons smtp server

From Grant Edwards <invalid@invalid.invalid>
Newsgroups comp.lang.python
Subject Re: Using pythons smtp server
Date 2013-12-13 16:40 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <l8fd9s$ssb$1@reader1.panix.com> (permalink)
References <mailman.4046.1386908855.18130.python-list@python.org>

Show all headers | View raw


On 2013-12-13, Vincent Davis <vincent@vincentdavis.net> wrote:

> I have an app that generates a file one a day and would like to email it
> using pythons SMTP server.

You don't send mail using an SMTP server.  You receive mail using an
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.

Newsgroups: comp.lang.python
From: Grant Edwards <invalid@invalid.invalid>
Subject: Re: Using pythons smtp server
References: <mailman.4046.1386908855.18130.python-list@python.org>
Followup-To:

On 2013-12-13, Vincent Davis <vincent@vincentdavis.net> wrote:

> I have an app that generates a file one a day and would like to email
> it using pythons SMTP server.

You don't send mail using an SMTP server.  You receive mail using an 
SMTP server.  You send mail using an SMTP client.

> 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.

https://www.google.com/search?q=python+send+email+smtp

-- 
Grant Edwards               grant.b.edwards        Yow! The PINK SOCKS were
                                  at               ORIGINALLY from 1952!!
                              gmail.com            But they went to MARS
                                                   around 1953!!

Back to comp.lang.python | Previous | NextPrevious in thread | Next 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