Mod_python and SMTP server

D

Doug Holton

Nancy said:
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)
 
N

Nancy

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
 
D

David Fraser

Nancy said:
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
 
N

Nancy

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,663
Latest member
josh5959

Latest Threads

Top