public class EmailDeliverer extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
EmailDeliverer.MessageBodyDataSource
Inner class to EmailDeliverer.
|
Modifier and Type | Field and Description |
---|---|
protected String |
bccAddresses |
protected String |
body |
protected String |
ccAddresses |
protected String |
contentType |
protected IErrorHandler |
errorHandler |
protected String |
fromAddress |
protected String |
replyToAddress |
protected String |
senderAddress |
protected String |
sessionJNDIName |
protected String |
subject |
protected String |
toAddresses |
Constructor and Description |
---|
EmailDeliverer() |
Modifier and Type | Method and Description |
---|---|
protected void |
addExtraBodyParts(MimeMultipart multipart)
Subclasses may override to embed images or other attachments in the
mime message.
|
protected DataSource |
createBodyDataSource()
Factory method that can be overridden to provide a different
implementation.
|
String |
deliverEmail()
Action handler that delivers an email message given the specified
data.
|
String |
getBccAddresses()
Get the blind copy addresses for this email.
|
String |
getBody()
Get the body text for this email.
|
String |
getCcAddresses()
Get the carbon copy addresses for this email.
|
String |
getContentType()
Get the content type for this email.
|
IErrorHandler |
getErrorHandler() |
String |
getFromAddress()
Get the from address for this email.
|
String |
getReplyToAddress()
Set the reply to address for this email.
|
String |
getSenderAddress()
Get the sender address for this email.
|
String |
getSessionJNDIName()
Get the session JNDI name.
|
String |
getSubject()
Get the subject text for this email.
|
String |
getToAddresses()
Get the to addresses for this email.
|
void |
setBccAddresses(String bccAddresses)
Set the blind copy addresses for this email.
|
void |
setBody(String body)
Set the body text for this email.
|
void |
setCcAddresses(String ccAddresses)
Set the carbon copy addresses for this email.
|
void |
setContentType(String contentType)
Set the content type for this email.
|
void |
setErrorHandler(IErrorHandler errorHandler) |
void |
setFromAddress(String fromAddress)
Set the from address for this email.
|
void |
setReplyToAddress(String replyToAddress)
Set the reply to address for this email.
|
void |
setSenderAddress(String senderAddress)
Set the sender address for this email.
|
void |
setSessionJNDIName(String sessionJNDIName)
Set the session JNDI name.
|
void |
setSubject(String subject)
Set the subject text for this email.
|
void |
setToAddresses(String toAddresses)
Set the to addresses for this email.
|
protected IErrorHandler errorHandler
protected String sessionJNDIName
protected String toAddresses
protected String ccAddresses
protected String bccAddresses
protected String replyToAddress
protected String subject
protected String body
protected String contentType
protected String fromAddress
protected String senderAddress
public IErrorHandler getErrorHandler()
public void setErrorHandler(IErrorHandler errorHandler)
public String getSessionJNDIName()
public void setSessionJNDIName(String sessionJNDIName)
sessionJNDIName
- The session JNDI Name.public String getToAddresses()
public void setToAddresses(String toAddresses)
toAddresses
- The to addresses.public String getCcAddresses()
public void setCcAddresses(String ccAddresses)
ccAddresses
- The carbon copy addresses.public String getBccAddresses()
public void setBccAddresses(String bccAddresses)
bccAddresses
- The blind copy addresses.public String getFromAddress()
public void setFromAddress(String fromAddress)
fromAddress
- The from address.public String getReplyToAddress()
public void setReplyToAddress(String replyToAddress)
replyToAddress
- The reply to Address.public String getSenderAddress()
public void setSenderAddress(String senderAddress)
senderAddress
- The sender address.public String getSubject()
public void setSubject(String subject)
subject
- the subject to setpublic String getBody()
public void setBody(String body)
body
- The body text.public String getContentType()
public void setContentType(String contentType)
contentType
- The content type.public String deliverEmail()
protected void addExtraBodyParts(MimeMultipart multipart) throws Exception
multipart
- The mime message.Exception
protected DataSource createBodyDataSource()