Total members 11894 |It is currently Sun Nov 24, 2024 1:41 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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;
}

}




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  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 Rectangle Class     -  
 Java Television 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
cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
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