Mod_python and SMTP server

Nancy wxling3 at hotmail.com
Mon Jul 19 16:01:23 CEST 2004


Hi,
  So is there any other way to use python or mod_python writing a web page?
I mean not using form.py/email, no SMTP server.

  Thanks a lot.

Nancy

David Fraser <davidf at sjsoft.com> wrote in message news:<cdg7ia$ki3$1 at ctb-nnrp2.saix.net>...
> Nancy wrote:
> > Hi,
> >   Very useful suggestion! Now the problem is, suppose I use hotmail as
> > my SMTP, who know what is the SMTP name of hotmail?
> >   If I use another SMTP, I got an error:
> >   error: (10061, 'Connection refused')
> > 
> >   Now, what should I do?
> >   Thanks a lot.
> > 
> > Nancy
> 
> You're going to have trouble using hotmail as an SMTP server, as it 
> doesn't support SMTP...
> 
> David
> 
> 
> > 
> > 
> > Doug Holton <insert at spam.here> wrote in message news:<dPqdnbY665YvVWfd4p2dnA at comcast.com>...
> > 
> >>Nancy wrote:
> >>
> >>>Hi,
> >>>  Is there any one knows, if I want to use mod_python to handle my
> >>>html form, I must have a SMTP server on my PC(winxp pro)?
> >>>  Where can I get a free SMTP server?
> >>>
> >>>  I cann't follow mod_python's manual example
> >>>(http://www.svencoop.com/manual/mod/mod_python/tut-pub.html), why ...
> >>
> >>Right, the example assumes you are running on Linux or Mac OS X, which
> >>run an SMTP server (like sendmail) by default.
> >>
> >>You could search for an STMP server for Windows (like blat or xmail), 
> >>but that isn't necessary.
> >>
> >>You can change the SMTP_SERVER line in your program to use the same STMP 
> >>server that your email uses.  Also, change WEBMASTER to your own email 
> >>address.
> >>If that server requires you to login before allowing you to send email, 
> >>add this line to your script after "conn = smtplib.SMTP(SMTP_SERVER)":
> >>conn.login(username, password)



More information about the Python-list mailing list