修改后可以发送附件、抄送、密送的javabean,吐血推荐~(javamail范例)

作者:袖梨 2022-07-02
/*
*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) {

相关文章

精彩推荐