smtp协议只是定义了客户端怎样和smtpserver通讯以及通讯所遵守的规则,
实际上客户端和服务器只是建立tcp/ip连接就可,注意是25端口。Socket socket = new Socket("mx01.263.net",25);DataInputStream dis = new DataInputStream(socket.getInputStream);
DataOutputStream dos = new DataOutputStream(socket.getOutputStream);
实际上客户端和服务器只是建立tcp/ip连接就可,注意是25端口。Socket socket = new Socket("mx01.263.net",25);DataInputStream dis = new DataInputStream(socket.getInputStream);
DataOutputStream dos = new DataOutputStream(socket.getOutputStream);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货