Tue Apr 23, 2013 11:37 pm
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;
}
}
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.