Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

J2ME send mail program error

807600Oct 8 2007
I am working in j2me platform, nw doing a project fro sending mail using mobile, but the code is ok but some connection problem

The code part*

sc = (SocketConnection)
Connector.open("socket://"+"smtp.mail.yahoo.com"+":25");

System.out.println("Socket Connection :"+sc.toString());
System.out.println("is before = "+is);
is = sc.openInputStream();
System.out.println("is after ="+is);

The output is*


Socket Connection :com.sun.midp.io.j2me.socket.Protocol@d590dbc
is before = null
is after =com.sun.midp.io.BaseInputStream@1a4cfaaa

Uncaught exception java/lang/IllegalStateException.


what is the problem here can anyone help me, i dont know whether the data that i ve provided is sufficient or not
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 5 2007
Added on Oct 8 2007
0 comments
133 views