<br><br><div><span class="gmail_quote"></span> on 1/12/06, <b class="gmail_sendername">Tim Williams (gmail)</b> <<a href="mailto:tdwdotnet@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
tdwdotnet@gmail.com</a>> wrote:<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span class="e" id="q_108bece9d965981c_1"><div><span class="gmail_quote">
</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">On 12 Jan 2006 04:28:44 -0800, <b class="gmail_sendername"><a href="mailto:anyab5@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
anyab5@gmail.com</a></b> <<a href="mailto:anyab5@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">anyab5@gmail.com</a>> wrote:
<div><span class="gmail_quote"></span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">hey I need help in sending email,<br><br>It seems that while using this set of commands<br>
<br>
from smtplib import SMTP<br><br>s = SMTP()<br>s.set_debuglevel(1)<br>s.connect('<a href="http://outmail.huji.ac.il/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">outmail.huji.ac.il</a>')<br><br>
I should be able to get a connection but what I get is this error
<br><br>T:\Anya\work>mail1.py<br>connect: ('<a href="http://outmail.huji.ac.il/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">outmail.huji.ac.il</a>', 25)<br>connect: ('<a href="http://outmail.huji.ac.il/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
outmail.huji.ac.il</a>', 25)<br>connect fail: ('<a href="http://outmail.huji.ac.il/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> outmail.huji.ac.il</a>', 25)<br>Traceback (most recent call last):
<br> File "C:\Python24\lib\smtplib.py", line 303, in connect<br> raise socket.error, msg<br>socket.error: (10053, 'Software caused connection abort') <br><br>Does any one have a clue ?<br><br></blockquote>
</div><br>>>> from smtplib import SMTP<br>>>> s = SMTP()<br>>>> s.set_debuglevel(1)<br>>>> s.connect('<a href="http://outmail.huji.ac.il/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
outmail.huji.ac.il</a>')<br>connect: ('<a href="http://outmail.huji.ac.il/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">outmail.huji.ac.il</a>', 25)<br>connect: ('<a href="http://outmail.huji.ac.il/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
outmail.huji.ac.il</a>', 25)<br>reply: '220 <a href="http://mail3.cc.huji.ac.il/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mail3.cc.huji.ac.il</a> ESMTP Postfix\r\n'<br>reply: retcode (220); Msg:
<a href="http://mail3.cc.huji.ac.il/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mail3.cc.huji.ac.il</a> ESMTP Postfix<br>connect: <a href="http://mail3.cc.huji.ac.il/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mail3.cc.huji.ac.il</a> ESMTP Postfix<br>(220, '<a href="http://mail3.cc.huji.ac.il/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mail3.cc.huji.ac.il</a> ESMTP Postfix')<br>>>> s.quit<br>
<br>Suspect a local / network firewall or port
block. It might possibly be a DNS issue, the
server's IP address is <a href="http://132.64.1.30/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
132.64.1.30</a> . You should try telnetting to the IP address on port 25 as a test<br><br>HTH :)<br><br></blockquote></div><br>
</span></div></blockquote></div><span class="gmail_quote">> On 12/01/06, <b class="gmail_sendername">anya bondarev</b> <<a href="mailto:anyab5@gmail.com">anyab5@gmail.com</a>> wrote:</span>
<div>> First thanks for your answer..<br>
</div>
<div>> </div>
<div>> I tried to open the connection using telnet and the connection couldnt be opened <br>> </div>
> any advice ?<br>
<br>
The problem isn't python. Your pc(?) is not able to connect to
this mail server. If you have a firewall,
turn it off very briefly while you retry the telnet test.
If this doesn't help, then you will need to contact your network
provider (eg: your IT dept, or your home ISP) and ask them if they are
blocking port 25 outbound. Until you get telnet to
work, your python will not work either.<br>
<br>
HTH :)<br><br clear="all"><br>-- <br><br>Tim Williams