|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.bl.Emailer
public class Emailer
Emailer class.
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
the log |
| Constructor Summary | |
|---|---|
Emailer(EmailConfig emailConfig)
Constructor |
|
Emailer(KKEngIf eng)
Constructor |
|
| Method Summary | |
|---|---|
ConfigurationMgr |
getConfigMgr()
|
protected EmailIntegrationMgrInterface |
getEmailIntegrationMgr()
Used to get an instance of the EmailIntegrationMgr |
java.lang.String |
getSubject()
|
javax.mail.Address |
getToAddress()
|
static boolean |
isEmailValid(java.lang.String emailAddr)
Determines whether the eMail address is valid |
void |
refreshConfigs()
Setup variables needed to send the mail |
protected void |
send()
Send an email message that has been fully defined before this call. |
void |
sendHTML(java.lang.String toAddressString,
java.lang.String theSubject,
java.lang.String theContentHTML,
boolean doBlindCopy,
boolean async)
Send a HTML-only email message to the specified recipient, with the specified subject and HTML content. |
void |
sendHTML(java.lang.String toAddressString,
java.lang.String theSubject,
java.lang.String theContentHTML,
boolean doBlindCopy,
java.lang.String fullAttachmentFilename,
java.lang.String friendlyAttachmentName,
boolean delAttachmentAfterSend,
boolean async)
Send a HTML-only email message to the specified recipient, with the specified subject and HTML content. |
void |
sendMail(boolean async)
Send the mail either synchronously or asynchronously |
void |
sendText(java.lang.String toAddressString,
java.lang.String theSubject,
java.lang.String theContentText,
boolean doBlindCopy,
boolean async)
Send a text-only email message to the specified recipient, with the specified subject and text content. |
void |
sendText(java.lang.String toAddressString,
java.lang.String fromAddress,
java.lang.String replyToAddress,
java.lang.String theSubject,
java.lang.String theContentText,
boolean doBlindCopy,
boolean async)
Send a text-only email message to the specified recipient, with the specified fromAddress, replyToAddress, subject and text content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public Emailer(KKEngIf eng)
throws java.lang.Exception
eng -
java.lang.Exception
public Emailer(EmailConfig emailConfig)
throws java.lang.Exception
emailConfig - Object containing configuration parameters
java.lang.Exception| Method Detail |
|---|
public void refreshConfigs()
throws java.lang.Exception
java.lang.Exception
public void sendHTML(java.lang.String toAddressString,
java.lang.String theSubject,
java.lang.String theContentHTML,
boolean doBlindCopy,
boolean async)
throws KKException
toAddressString - theSubject - theContentHTML - doBlindCopy - async -
KKException
public void sendHTML(java.lang.String toAddressString,
java.lang.String theSubject,
java.lang.String theContentHTML,
boolean doBlindCopy,
java.lang.String fullAttachmentFilename,
java.lang.String friendlyAttachmentName,
boolean delAttachmentAfterSend,
boolean async)
throws KKException
toAddressString - theSubject - theContentHTML - doBlindCopy - fullAttachmentFilename - full filename of the attachmentfriendlyAttachmentName - friendly name to use for the attachmentdelAttachmentAfterSend - set to true to delete the attachment file after the sendasync -
KKException
public void sendText(java.lang.String toAddressString,
java.lang.String theSubject,
java.lang.String theContentText,
boolean doBlindCopy,
boolean async)
throws KKException
toAddressString - theSubject - theContentText - doBlindCopy - async -
KKException
public void sendText(java.lang.String toAddressString,
java.lang.String fromAddress,
java.lang.String replyToAddress,
java.lang.String theSubject,
java.lang.String theContentText,
boolean doBlindCopy,
boolean async)
throws KKException
toAddressString - fromAddress - replyToAddress - theSubject - theContentText - doBlindCopy - async -
KKException
public void sendMail(boolean async)
throws KKException
async -
KKException
protected void send()
throws KKException
KKException
public ConfigurationMgr getConfigMgr()
throws java.lang.Exception
java.lang.Exceptionpublic static boolean isEmailValid(java.lang.String emailAddr)
emailAddr -
protected EmailIntegrationMgrInterface getEmailIntegrationMgr()
throws org.apache.torque.TorqueException,
KKException,
com.workingdogs.village.DataSetException,
java.lang.Exception
java.lang.Exception
com.workingdogs.village.DataSetException
KKException
org.apache.torque.TorqueExceptionpublic java.lang.String getSubject()
public javax.mail.Address getToAddress()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||