|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compoze.util.PreparedEmail
public class 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,
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,
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,
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,
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 bodypublic 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 bodypublic 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 typepublic 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 map
java.io.FileNotFoundException
- if the file could not be found
java.io.IOException
- if an i/o error occurredpublic 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 map
java.io.FileNotFoundException
- if the file could not be found
java.io.IOException
- if an i/o error occurredpublic 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-type
java.io.IOException
- if an i/o error occurredpublic 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, 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-type
java.io.IOException
- if an i/o error occurredpublic 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, 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-type
java.io.IOException
- if an i/o error occurredpublic 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, 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 namepublic PreparedEmail(java.lang.String sMailHost, java.lang.String sFrom, java.lang.String sTo, java.lang.String sSubject, java.lang.String sBody, 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 nameMethod Detail |
---|
public void send() throws MessagingException, AddressException, java.io.IOException
MessagingException
- if an exception occurred in sending the email
AddressException
- if a specified email address is invalid
java.io.IOException
- if an i/o error occurred
|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |