修改后可以发送附件、抄送、密送的javabean,易做图推荐~(javamail范例)
/**Author:tyfun
*DateTime:2003.01.09
*Package:com.westarsoft.function
*/
package com.westarsoft.function;
import java.util.*;
import java.io.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
public class SendMail {
private String SMTPServer = new String();
private String from = new String();
private String subject = new String();
private String content = new String();
private String user = new String();
private String password = new String();
private String fileAttachment = new String();
public String getSMTPServer() {
return SMTPServer;
}
public void setSMTPServer(String SMTPServer) {
this.SMTPServer = SMTPServer;
}
public String getFrom() {
return from;
}
public void setFrom(String from) {
this.from = from;
}
public String getSubject() {
return subject;
}
public void setSubject(String subject) {
this.subject = subject;
}
public String getContent() {
return content;
}
public void setContent(String content) {
补充:Jsp教程,邮件