J2ME send mail program error
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