|
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.compoze.util.PreparedEmail
This class wraps the information needed to send an email message, and uses the javax.mail API to send the message.
| Constructor Summary | |
PreparedEmail(java.lang.String sMailHost,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sSubject,
byte[] body,
java.lang.String sContentType)
Constructor. |
|
PreparedEmail(java.lang.String sMailHost,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sSubject,
java.io.File templateFile,
java.util.HashMap replacementMap)
Constructor. |
|
PreparedEmail(java.lang.String sMailHost,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sSubject,
java.io.File templateFile,
java.util.HashMap replacementMap,
java.lang.String sContentType)
Constructor. |
|
PreparedEmail(java.lang.String sMailHost,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sSubject,
java.io.Reader templateReader,
java.util.HashMap replacementMap)
Constructor. |
|
PreparedEmail(java.lang.String sMailHost,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sSubject,
java.io.Reader templateReader,
java.util.HashMap replacementMap,
java.lang.String sContentType,
javax.activation.DataSource dataSource,
java.lang.String sAttachmentName)
Constructor. |
|
PreparedEmail(java.lang.String sMailHost,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sSubject,
java.lang.String sBody)
Constructor. |
|
PreparedEmail(java.lang.String sMailHost,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sSubject,
java.lang.String sBody,
javax.activation.DataSource dataSource,
java.lang.String sAttachmentName)
Constructor. |
|
PreparedEmail(java.lang.String sMailHost,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sSubject,
java.lang.String sBody,
java.lang.String sContentType)
Constructor. |
|
PreparedEmail(java.lang.String sMailHost,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sCc,
java.lang.String sBcc,
java.lang.String sSubject,
byte[] body,
java.io.Reader templateReader,
java.util.HashMap replacementMap,
java.lang.String sContentType,
javax.activation.DataSource dataSource,
java.lang.String sAttachmentName)
Constructor. |
|
PreparedEmail(java.lang.String sMailHost,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sSubject,
java.lang.String sBody,
java.lang.String sContentType,
javax.activation.DataSource dataSource,
java.lang.String sAttachmentName)
Constructor. |
|
| Method Summary | |
void |
send()
Send the email. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PreparedEmail(java.lang.String sMailHost,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sSubject,
java.lang.String sBody)
sMailHost - the mail server hostsFrom - the from addresssTo - the to addresssSubject - the subjectsBody - the body
public PreparedEmail(java.lang.String sMailHost,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sSubject,
java.lang.String sBody,
java.lang.String sContentType)
sMailHost - the mail server hostsFrom - the from addresssTo - the to addresssSubject - the subjectsBody - the body
public PreparedEmail(java.lang.String sMailHost,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sSubject,
byte[] body,
java.lang.String sContentType)
sMailHost - the mail server hostsFrom - the from addresssTo - the to addresssSubject - the subjectbody - the bodysContentType - the content type
public PreparedEmail(java.lang.String sMailHost,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sSubject,
java.io.File templateFile,
java.util.HashMap replacementMap)
throws java.io.FileNotFoundException,
java.io.IOException
sMailHost - the mail server hostsFrom - the from addresssTo - the to addresssSubject - the subjecttemplateFile - the template filereplacementMap - the replacement mapjava.io.FileNotFoundException - if the file could not be foundjava.io.IOException - if an i/o error occurred
public PreparedEmail(java.lang.String sMailHost,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sSubject,
java.io.File templateFile,
java.util.HashMap replacementMap,
java.lang.String sContentType)
throws java.io.FileNotFoundException,
java.io.IOException
sMailHost - the mail server hostsFrom - the from addresssTo - the to addresssSubject - the subjecttemplateFile - the template filereplacementMap - the replacement mapjava.io.FileNotFoundException - if the file could not be foundjava.io.IOException - if an i/o error occurred
public PreparedEmail(java.lang.String sMailHost,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sSubject,
java.io.Reader templateReader,
java.util.HashMap replacementMap)
throws java.io.IOException
sMailHost - the mail server hostsFrom - the from addresssTo - the to addresssSubject - the subjecttemplateReader - the template readerreplacementMap - the replacement mapsContentType - the content-typejava.io.IOException - if an i/o error occurred
public PreparedEmail(java.lang.String sMailHost,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sSubject,
java.io.Reader templateReader,
java.util.HashMap replacementMap,
java.lang.String sContentType,
javax.activation.DataSource dataSource,
java.lang.String sAttachmentName)
throws java.io.IOException
sMailHost - the mail server hostsFrom - the from addresssTo - the to addresssSubject - the subjecttemplateReader - the template readerreplacementMap - the replacement mapsContentType - the content-typejava.io.IOException - if an i/o error occurred
public PreparedEmail(java.lang.String sMailHost,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sCc,
java.lang.String sBcc,
java.lang.String sSubject,
byte[] body,
java.io.Reader templateReader,
java.util.HashMap replacementMap,
java.lang.String sContentType,
javax.activation.DataSource dataSource,
java.lang.String sAttachmentName)
throws java.io.IOException
sMailHost - the mail server hostsFrom - the from addresssTo - the to addresssSubject - the subjecttemplateReader - the template readerreplacementMap - the replacement mapsContentType - the content-typejava.io.IOException - if an i/o error occurred
public PreparedEmail(java.lang.String sMailHost,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sSubject,
java.lang.String sBody,
java.lang.String sContentType,
javax.activation.DataSource dataSource,
java.lang.String sAttachmentName)
sMailHost - the mail server hostsFrom - the from addresssTo - the to addresssSubject - the subjectsBody - the bodysContentType - the content typedataSource - the attachment data sourcesAttachmentName - the attachment name
public PreparedEmail(java.lang.String sMailHost,
java.lang.String sFrom,
java.lang.String sTo,
java.lang.String sSubject,
java.lang.String sBody,
javax.activation.DataSource dataSource,
java.lang.String sAttachmentName)
sMailHost - the mail server hostsFrom - the from addresssTo - the to addresssSubject - the subjectsBody - the bodydataSource - the attachment data sourcesAttachmentName - the attachment name| Method Detail |
public void send()
throws javax.mail.MessagingException,
javax.mail.internet.AddressException,
java.io.IOException
javax.mail.MessagingException - if an exception occurred in sending the emailjavax.mail.internet.AddressException - if a specified email address is invalidjava.io.IOException - if an i/o error occurred
|
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||