[cse491] Example Code Fail

Joe Amenta amentajo at msu.edu
Sun Sep 27 14:20:13 PDT 2009


I am having no problem with the example code.

[17:18][joe at joe-desktop] ~ $ python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> sock = socket.socket()
>>> sock.connect(("teckla.idyll.org", 25))
>>> sock.recv(4096)
'220 teckla.idyll.org ESMTP Exim 4.63 Sun, 27 Sep 2009 14:18:31 -0700\r\n'
>>>

--Joe

On Sun, Sep 27, 2009 at 5:02 PM, Owen Pierce <opierce at gmail.com> wrote:

> Can anyone else run the example code from lab4?  I'm trying to run the code
> from the* Sending mail - example*, but I keep getting
>
> Traceback (most recent call last):
>   File "send-email", line 11, in <module>
>     sock.connect(('teckla.idyll.org', 25))
>   File "<string>", line 1, in connect
> socket.error: [Errno 113] No route to host
>
> _______________________________________________
> cse491-fall-2009 mailing list
> cse491-fall-2009 at lists.idyll.org
> http://lists.idyll.org/listinfo/cse491-fall-2009
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.idyll.org/pipermail/cse491-fall-2009/attachments/20090927/3019b6d1/attachment.htm 


More information about the cse491-fall-2009 mailing list