when i execute this code i got an error "Error:connection lost". where is the bug. pls somebody help meHTML Code:import javax.mail.*; import javax.mail.internet.*; import java.util.*; import java.io.*; class mailx { public static void main(String args[])throws Exception { Properties myprop=new Properties(); try { Session mailConnection = Session.getInstance(new Properties(), null); Store mystore=mailConnection.getStore("pop3s"); mystore.connect("pop3.gmail.com","hgfdsa","asdfgh"); Folder inbox=mystore.getFolder("INBOX"); if(inbox==null) { System.out.println("Not avail"); System.exit(1); } inbox.open(Folder.READ_ONLY); Message[] msg=inbox.getMessages(); for(int i=0;i<msg.length;i++) { System.out.println("Msg"+(i+1)); msg[i].writeTo(System.out); } inbox.close(false); mystore.close(); } catch(Exception ex) { System.out.println(e.getMessage()); } } }