当前位置: 技术问答>java相关
中文显示问题求答,100分。在线等待!!!!
来源: 互联网 发布时间:2015-04-27
本文导语: 我的程序如下: public void sendMail() { try { this.setFont(new Font("Dialog",0,12)); displayKey(); Socket s = new Socket(mailServer, 25); BufferedReader in = new BufferedReader ...
我的程序如下:
public void sendMail() {
try {
this.setFont(new Font("Dialog",0,12));
displayKey();
Socket s = new Socket(mailServer, 25);
BufferedReader in = new BufferedReader
(new InputStreamReader(s.getInputStream(), "8859_1"));
BufferedWriter out = new BufferedWriter
(new OutputStreamWriter(s.getOutputStream(), "8859_1"));
send(in, out, "MAIL FROM: " + adresser);
send(in, out, "RCPT TO: " + recipient);
send(in, out, "DATA");
send(out, "Subject: " + subject);
send(out, "From: " + adresser);
send (out, "n");
for(int h=0;h
public void sendMail() {
try {
this.setFont(new Font("Dialog",0,12));
displayKey();
Socket s = new Socket(mailServer, 25);
BufferedReader in = new BufferedReader
(new InputStreamReader(s.getInputStream(), "8859_1"));
BufferedWriter out = new BufferedWriter
(new OutputStreamWriter(s.getOutputStream(), "8859_1"));
send(in, out, "MAIL FROM: " + adresser);
send(in, out, "RCPT TO: " + recipient);
send(in, out, "DATA");
send(out, "Subject: " + subject);
send(out, "From: " + adresser);
send (out, "n");
for(int h=0;h