Java Email Class

Tue Apr 23, 2013 10:37 pm

Java Email Class
java code
import java.io.File;


public class Mail {
private String subject;
private String message;
private String sender;
private String[] toRecipient;
private String[] ccRecipient;
private String[] bccRecipient;
private File[] attachments;

/**
* Default constructor.
*/
public Mail() {
super();
}


public Mail(String subject, String message, String sender,
String[] toRecipient, String[] ccRecipient, String[] bccRecipient,
File[] attachments) {
super();
this.subject = subject;
this.message = message;
this.sender = sender;
this.toRecipient = toRecipient;
this.ccRecipient = ccRecipient;
this.bccRecipient = bccRecipient;
this.attachments = attachments;
}

public String getSubject() {
return subject;
}

public void setSubject(String subject) {
this.subject = subject;
}

public String getMessage() {
return message;
}

public void setMessage(String message) {
this.message = message;
}

public String getSender() {
return sender;
}

public void setSender(String sender) {
this.sender = sender;
}


public String[] getToRecipient() {
return toRecipient;
}

public void setToRecipient(String[] toRecipient) {
this.toRecipient = toRecipient;
}


public String[] getCcRecipient() {
return ccRecipient;
}

public void setCcRecipient(String[] ccRecipient) {
this.ccRecipient = ccRecipient;
}


public String[] getBccRecipient() {
return bccRecipient;
}


public void setBccRecipient(String[] bccRecipient) {
this.bccRecipient = bccRecipient;
}


public File[] getAttachments() {
return attachments;
}


public void setAttachments(File[] attachments) {
this.attachments = attachments;
}

}




  Related Posts  to : Java Email Class
 java abstract class,concrete class and interface     -  
 email through JAVA program     -  
 How to create Email from Core Java Code     -  
 Java Television class     -  
 Java Rectangle Class     -  
 Nested classes(inner class) in java     -  
 Define class helper class to check the method existance     -  
 relationship between the Canvas class and the Graphics class     -  
 Define class inside another class C++     -  
 inner class that is a member of an outer class?     -  

Topic Tags

Java Email