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


Groups > comp.lang.python > #54456

Re: Tryign to send mail via a python script by using the local MTA

References (17 earlier) <52379718$0$29988$c3e8da3$5496439d@news.astraweb.com> <5238330F.2060200@modelnine.org> <mailman.61.1379419352.18130.python-list@python.org> <l19gue$tc9$1@dont-email.me> <l19j88$gi$1@ger.gmane.org>
From Jake Angulo <jake.angulo@gmail.com>
Date 2013-09-20 13:56 +1000
Subject Re: Tryign to send mail via a python script by using the local MTA
Newsgroups comp.lang.python
Message-ID <mailman.170.1379649892.18130.python-list@python.org> (permalink)

Show all headers | View raw


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

Up Robert Kern's reply!

I was waiting for smtplib <http://docs.python.org/2/library/smtplib> to be
mentioned... finally!  Instead people simply answer philosophically.  I
dont want to judge whether OP is a troll or not - but i found a lot of
arrogant replies here.  I have also worked on an antispam project before,
and see through the intents of the OP, but I do not pretend to be a
moralist. I was hoping we would strictly discuss code or software
architecture here, not morality. Simple question, simple answer pls, in the
interest of the Python list.

To the OP:

You might want to google smtplib, and use that instead of os calling a
system command. Smtplib takes care of all the operating system's quirks for
you, and still uses the os native sendmail program.

On the other hand, the way you are sending email is highly suspect, trying
to spoof a domain, random email address, etc.  It is not easy to fool most
modern email servers nowadays - especially gmail's.  They verify first that
the sending domain matches the IP of the sender.  And if you are trying to
do this - it is neither Python's nor the OS fault.

Happy coding!


On Tue, Sep 17, 2013 at 10:51 PM, Robert Kern <robert.kern@gmail.com> wrote:

> On 2013-09-17 13:11, Ferrous Cranus wrote:
>
>  There are members here like Tim Chase who said that they find it
>> interesting to
>> be able to do what i proposed.
>>
>
> No, he didn't. He was using sarcasm in a vain attempt to inspire you to
> search the Python documentation where you could easily find the standard
> SMTP library.
>
>   http://docs.python.org/2/**library/smtplib<http://docs.python.org/2/library/smtplib>
>
> --
> Robert Kern
>
> "I have come to believe that the whole world is an enigma, a harmless
> enigma
>  that is made terrible by our own mad attempt to interpret it as though it
> had
>  an underlying truth."
>   -- Umberto Eco
>
> --
> https://mail.python.org/**mailman/listinfo/python-list<https://mail.python.org/mailman/listinfo/python-list>
>

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


Thread

Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-15 08:54 -0700
  Re: Tryign to send mail via a python script by using the local MTA Joost Molenaar <j.j.molenaar@gmail.com> - 2013-09-15 20:59 +0200
    Re: Tryign to send mail via a python script by using the local MTA SuperHost - Nikos <nikos@superhost.gr> - 2013-09-15 23:56 +0300
  Re: Tryign to send mail via a python script by using the local MTA Chris Angelico <rosuav@gmail.com> - 2013-09-16 07:31 +1000
  Re: Tryign to send mail via a python script by using the local MTA Joel Goldstick <joel.goldstick@gmail.com> - 2013-09-15 17:57 -0400
  Re: Tryign to send mail via a python script by using the local MTA Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-16 01:52 +0000
    Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-16 09:44 +0300
    Re: Tryign to send mail via a python script by using the local MTA Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-16 09:29 +0200
      Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-16 11:04 +0300
    Re: Tryign to send mail via a python script by using the local MTA Chris Angelico <rosuav@gmail.com> - 2013-09-16 17:44 +1000
    Re: Tryign to send mail via a python script by using the local MTA Chris Angelico <rosuav@gmail.com> - 2013-09-16 17:46 +1000
    Re: Tryign to send mail via a python script by using the local MTA Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-16 10:07 +0200
    Re: Tryign to send mail via a python script by using the local MTA Chris Angelico <rosuav@gmail.com> - 2013-09-16 18:12 +1000
    Re: Tryign to send mail via a python script by using the local MTA Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-16 10:12 +0200
    Re: Tryign to send mail via a python script by using the local MTA Chris Angelico <rosuav@gmail.com> - 2013-09-16 18:19 +1000
    Re: Tryign to send mail via a python script by using the local MTA Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-16 10:43 +0200
    Re: Tryign to send mail via a python script by using the local MTA Chris Angelico <rosuav@gmail.com> - 2013-09-16 18:48 +1000
    Re: Tryign to send mail via a python script by using the local MTA Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-16 11:40 +0200
      Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-16 12:45 +0300
        Re: Tryign to send mail via a python script by using the local MTA Joost Molenaar <j.j.molenaar@gmail.com> - 2013-09-16 12:06 +0200
          Re: Tryign to send mail via a python script by using the local MTA Denis McMahon <denismfmcmahon@gmail.com> - 2013-09-16 11:21 +0000
            Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-16 14:37 +0300
              Re: Tryign to send mail via a python script by using the local MTA Heiko Wundram <modelnine@modelnine.org> - 2013-09-16 13:44 +0200
                Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-16 15:11 +0300
                Re: Tryign to send mail via a python script by using the local MTA Heiko Wundram <modelnine@modelnine.org> - 2013-09-16 14:17 +0200
                Re: Tryign to send mail via a python script by using the local MTA Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-16 14:56 +0200
                Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-16 18:02 +0300
                Re: Tryign to send mail via a python script by using the local MTA Denis McMahon <denismfmcmahon@gmail.com> - 2013-09-16 19:09 +0000
                Re: Tryign to send mail via a python script by using the local MTA Joel Goldstick <joel.goldstick@gmail.com> - 2013-09-16 17:07 -0400
                Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-17 00:18 +0300
                Re: Tryign to send mail via a python script by using the local MTA Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-16 23:41 +0000
                Re: Tryign to send mail via a python script by using the local MTA Heiko Wundram <modelnine@modelnine.org> - 2013-09-17 12:46 +0200
                Re: Tryign to send mail via a python script by using the local MTA Grant Edwards <invalid@invalid.invalid> - 2013-09-17 14:37 +0000
                Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-17 18:17 +0300
                Re: Tryign to send mail via a python script by using the local MTA Denis McMahon <denismfmcmahon@gmail.com> - 2013-09-17 16:30 +0000
                Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-18 00:42 +0300
                Re: Tryign to send mail via a python script by using the local MTA Chris Angelico <rosuav@gmail.com> - 2013-09-18 07:47 +1000
                Re: Tryign to send mail via a python script by using the local MTA William Ray Wing <wrw@mac.com> - 2013-09-17 18:34 -0400
                Re: Tryign to send mail via a python script by using the local MTA Denis McMahon <denismfmcmahon@gmail.com> - 2013-09-18 05:20 +0000
                Re: Tryign to send mail via a python script by using the local MTA Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-09-18 18:31 -0400
                Re: Tryign to send mail via a python script by using the local MTA Dave Angel <davea@davea.name> - 2013-09-18 23:55 +0000
                Re: Tryign to send mail via a python script by using the local MTA Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-09-17 19:29 -0400
                Re: Tryign to send mail via a python script by using the local MTA Νίκος <nikos.gr33k@gmail.com> - 2013-09-21 12:21 +0300
                Re: Tryign to send mail via a python script by using the local MTA William Ray Wing <wrw@mac.com> - 2013-09-21 09:29 -0400
                Re: Tryign to send mail via a python script by using the local MTA alex23 <wuwei23@gmail.com> - 2013-09-23 11:17 +1000
                Re: Tryign to send mail via a python script by using the local MTA Piet van Oostrum <piet@vanoostrum.org> - 2013-09-17 22:58 -0400
                Re: Tryign to send mail via a python script by using the local MTA Joel Goldstick <joel.goldstick@gmail.com> - 2013-09-17 07:55 -0400
                Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-17 15:11 +0300
                Re: Tryign to send mail via a python script by using the local MTA Robert Kern <robert.kern@gmail.com> - 2013-09-17 13:51 +0100
                Re: Tryign to send mail via a python script by using the local MTA Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-17 14:52 +0200
                Re: Tryign to send mail via a python script by using the local MTA Jake Angulo <jake.angulo@gmail.com> - 2013-09-20 13:56 +1000
                Re: Tryign to send mail via a python script by using the local MTA feedthetroll@gmx.de - 2013-09-20 04:05 -0700
                Re: Tryign to send mail via a python script by using the local MTA Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-20 08:48 +0200
                Re: Tryign to send mail via a python script by using the local MTA Robert Kern <robert.kern@gmail.com> - 2013-09-20 10:26 +0100
                Re: Tryign to send mail via a python script by using the local MTA Heiko Wundram <modelnine@modelnine.org> - 2013-09-17 14:22 +0200
                Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-16 19:15 +0300
                Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-16 19:23 +0300
                Re: Tryign to send mail via a python script by using the local MTA Denis McMahon <denismfmcmahon@gmail.com> - 2013-09-16 19:07 +0000
                Re: Tryign to send mail via a python script by using the local MTA William Ray Wing <wrw@mac.com> - 2013-09-16 13:53 -0400
                Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-17 00:15 +0300
                Re: Tryign to send mail via a python script by using the local MTA Tim Chase <python.list@tim.thechases.com> - 2013-09-16 20:40 -0500
                Re: Tryign to send mail via a python script by using the local MTA feedthetroll@gmx.de - 2013-09-16 23:15 -0700
            Re: Tryign to send mail via a python script by using the local MTA Heiko Wundram <modelnine@modelnine.org> - 2013-09-16 13:32 +0200

csiph-web