Re: reg mail sending without smtp module

Discussion in 'Python' started by praba kar, May 12, 2005.

  1. praba kar

    praba kar Guest

    Dear All,

    From this below answer I got clear
    idea for mail sending Module. I am expecting
    this kind of answer . Thank you
    for your immediate response.

    --- Mike Meyer <> wrote:
    > praba kar <> writes:
    > > In Php we can build a Mail Message by
    > > Mail_mime class and send this message by
    > > Mail::Factory's class send Method. Here Php
    > > doesn't use any smtp modules. Like that
    > > In Python I used email.Message class to
    > > build Mail Message and Now I am searching
    > > modules to send this message as mail.

    >
    > Python isn't PHP. In python, the standard way to
    > send a message is
    > with the smtp module. If you do an "import this" in
    > a python
    > interpreter, it will tell you (among other things)
    > "There should be
    > one-- and preferably only one --obvious way to do
    > it." The smtp module
    > is that way. Since smtp is also how mail is sent
    > around the internet,
    > this makes a lot of sense.
    >
    > Now, the PHP mail command uses the system's sendmail
    > binary (at least
    > on Unix). You can do that by hand using the
    > subprocess module in 2.4,
    > or os.system or os.popen or something similar on
    > earlier versions of
    > Python. All this really does is asks sendmail to put
    > a message in the
    > queue from the command line, rather than via the
    > smtp port. It's
    > probably slower than talking to the already running
    > smtp daemon.
    >
    > On Windows, the PHP mail command connects to an smtp
    > server - which is
    > exactly what smtplib does.
    >
    > <mike
    > --
    > Mike Meyer <>
    > http://www.mired.org/home/mwm/
    > Independent WWW/Perforce/FreeBSD/Unix consultant,
    > email for more information.
    > --
    > http://mail.python.org/mailman/listinfo/python-list
    >


    ________________________________________________________________________
    Yahoo! India Matrimony: Find your life partner online
    Go to: http://yahoo.shaadi.com/india-matrimony
    praba kar, May 12, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    3
    Views:
    1,064
    Roedy Green
    Jan 24, 2006
  2. Alex Hunsley
    Replies:
    4
    Views:
    3,449
    Tim Williams (gmail)
    Jun 29, 2004
  3. Raaijmakers, Vincent \(GE Infrastructure\)

    RE: sending of mail (smtp) - connection refused - but smtp serveris running!

    Raaijmakers, Vincent \(GE Infrastructure\), Jun 29, 2004, in forum: Python
    Replies:
    0
    Views:
    874
    Raaijmakers, Vincent \(GE Infrastructure\)
    Jun 29, 2004
  4. praba kar

    reg mail sending without smtp module

    praba kar, May 11, 2005, in forum: Python
    Replies:
    1
    Views:
    309
    Kartic
    May 11, 2005
  5. praba kar
    Replies:
    3
    Views:
    1,705
    Tim Roberts
    May 14, 2005
Loading...

Share This Page