在以下代码中,我没有收到任何邮件进入我的电子邮件帐户
while((resp=in.readLine())!=null){
System.out.println("Server: "+resp);
if(resp.indexOf("220")!=-1){
break;
}
}
System.out.println("Bef "+resp);
out.print("EHLO "+InetAddress.getLocalHost().getHostAddress());
System.out.println("EHLO "+InetAddress.getLocalHost().getHostAddress());
resp=in.readLine();
System.out.println("Aft "+resp);
while((resp=in.readLine())!=null){
System.out.println("Server: "+resp);
if (resp.indexOf("250")!=-1) {
System.out.println("fck");
break;
}else{
System.out.println("Yo");
}
}
所有回复都还可以。