logo       

RE: java.net.SocketExceptio: msg#00025

lang.jython.user

Subject: RE: java.net.SocketExceptio

Do you have a firewall running? See if you can telnet
to the smtp port you are trying to connect to.

-Clark

> Hi,
>
> I am trying to send an e- mail using jython...
>
> I have tried the following code
>
> import smtplib
> srv=smtplib.SMTP(localhost)
>
> and it gives this error,
>
> java.net.SocketException: java.net.SocketException: Software caused
> connection a
> bort: connect
>
> I have also tried connecting to the server by using
> smtpd.SMTPServer, It
> says smtpd.SMTPServer listening to..., but fails to get
> connected and gives
> a socket error
>
> Could someone tell me the source of this exception


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93&alloc_id281&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise