package com.waldura.mail; /** * An simple bean encapsulating the properties of an e-mail message. * * @author Renaud Waldura, 6/26/2001 */ public class MailMessage { public String toString() { StringBuffer tmp = new StringBuffer(); tmp.append("from=") .append(from) .append(" to=") .append(to) .append(" subject=") .append(subject); return tmp.toString(); } // the "to" field private String to; public String getTo() { return to; } public void setTo(String to) { this.to = to; } // the "from" field private String from; public String getFrom() { return from; } public void setFrom(String from) { this.from = from; } // the "body" field private String body; public String getBody() { return body; } public void setBody(String body) { this.body = body; } // the "cc" field private String cc; public String getCc() { return cc; } public void setCc(String cc) { this.cc = cc; } // the "subject" field private String subject; public String getSubject() { return subject; } public void setSubject(String subject) { this.subject = subject; } }