SMTP 发信验证怎么解决?谢谢!
Socket s = new Socket(mailServer, 25);
下来怎么作?
这样对么?:send(in, out, "ATUH: " + password);
问题点数:50、回复次数:2Top
1 楼gxj0637(╭∩╮(︶︿︶)╭∩╮)回复于 2002-04-17 16:58:52 得分 50
send( in, out, "AUTH LOGIN" );
send( in, out, get64Code(useName) );
send( in, out, get64Code(pass) );
Top
2 楼gxj0637(╭∩╮(︶︿︶)╭∩╮)回复于 2002-04-17 16:59:49 得分 0
private String get64Code( String code32 )
{//把字符串转换成BASE64格式
String code64 = new sun.misc.BASE64Encoder().encode(code32.getBytes());
return code64;
}
Top




