Using pythons smtp server

Vincent Davis vincent at vincentdavis.net
Fri Dec 13 18:13:18 CET 2013


>
> "You don't send mail using an SMTP server.  You receive mail using an
> SMTP server.
> ​"​
>

Um maybe, I guess it is a matter of perspective.

Let me rephrase my question. ​​I want to send an email using python but do
not want to use an external service. Does python have the ability to send
emails without installing additional software or using an external
server/service?
Maybe I am wrong, I thought examples like s = smtplib.SMTP('localhost')
​​ are using a local(outside of python) smtp server, like postfix.




Vincent Davis
720-301-3003


On Fri, Dec 13, 2013 at 9:40 AM, Grant Edwards <invalid at invalid.invalid>wrote:

> On 2013-12-13, Vincent Davis <vincent at 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 at invalid.invalid>
> Subject: Re: Using pythons smtp server
> References: <mailman.4046.1386908855.18130.python-list at python.org>
> Followup-To:
>
> On 2013-12-13, Vincent Davis <vincent at 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!!
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20131213/aee043ea/attachment.html>


More information about the Python-list mailing list