|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdminEmailMgrIf
AdminEmailMgrIf
Method Summary | |
---|---|
com.konakart.bl.Emailer |
getEmailer()
|
boolean |
sendEmail(AdminEmail adminEmailData)
To send an email |
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 |
sendNewPasswordEmail(java.lang.String emailAddr,
java.lang.String newPassword,
java.lang.String mailSubject,
java.lang.String countryCode)
Send out an email notifying a user of a new password |
void |
sendStatusChangeEmail(int orderId)
A status change email is sent when the status of an order is changed |
void |
sendStatusChangeEmailForState(int orderId,
int state)
A status change email is sent when the status of an order is changed. |
void |
sendTemplateEmail(AdminCustomer customer,
java.lang.String templateName,
java.lang.Object obj1,
java.lang.Object obj2,
java.lang.Object obj3,
java.lang.Object obj4,
java.lang.Object obj5,
AdminEmailOptions options)
An email is sent to the customer. |
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 fromAddressString,
java.lang.String replyToAddressString,
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. |
Method Detail |
---|
boolean sendEmail(AdminEmail adminEmailData) throws KKAdminException
adminEmailData
- the Email object to fill out to define the email to send
KKAdminException
- typically when the email could not be sentvoid sendNewPasswordEmail(java.lang.String emailAddr, java.lang.String newPassword, java.lang.String mailSubject, java.lang.String countryCode) throws java.lang.Exception
emailAddr
- Email address to send to - the TO: addressnewPassword
- the new password that was randomly generatedmailSubject
- the email subject linecountryCode
- country code (to pick the appropriate velocity template)
java.lang.Exception
void sendHTML(java.lang.String toAddressString, java.lang.String theSubject, java.lang.String theContentHTML, boolean doBlindCopy, boolean async) throws KKAdminException
toAddressString
- the TO: addresstheSubject
- the subject line of the emailtheContentHTML
- the HTML body of the emaildoBlindCopy
- if true the defined Blind Copy address will be addedasync
- set to true to send the mail asynchronously or false to send it synchronously
KKAdminException
void sendText(java.lang.String toAddressString, java.lang.String theSubject, java.lang.String theContentText, boolean doBlindCopy, boolean async) throws KKAdminException
toAddressString
- the TO: addresstheSubject
- the subject line of the emailtheContentText
- the plain text body of the emaildoBlindCopy
- if true the defined Blind Copy address will be addedasync
- set to true to send the mail asynchronously or false to send it synchronously
KKAdminException
void sendText(java.lang.String toAddressString, java.lang.String fromAddressString, java.lang.String replyToAddressString, java.lang.String theSubject, java.lang.String theContentText, boolean doBlindCopy, boolean async) throws KKAdminException
toAddressString
- TO: addressfromAddressString
- From addressreplyToAddressString
- reply to addresstheSubject
- theContentText
- the plain text body of the emaildoBlindCopy
- if true the defined Blind Copy address will be addedasync
- set to true to send the mail asynchronously or false to send it synchronously
KKAdminException
void sendStatusChangeEmailForState(int orderId, int state) throws java.lang.Exception
orderId
- the order Id of the order whose status has changedstate
- the state of the order
java.lang.Exception
void sendStatusChangeEmail(int orderId) throws java.lang.Exception
orderId
- the order Id of the order whose status has changed
java.lang.Exception
com.konakart.bl.Emailer getEmailer() throws KKAdminException
KKAdminException
void sendTemplateEmail(AdminCustomer customer, java.lang.String templateName, java.lang.Object obj1, java.lang.Object obj2, java.lang.Object obj3, java.lang.Object obj4, java.lang.Object obj5, AdminEmailOptions options) throws java.lang.Exception
customer
- The customer to which the eMail will be sent. It will be passed to the velocity
template with the name "cust".templateName
- The name of the template. The country code and .vm will be appended automatically.
i.e. If the template name is newsletter and the country code is en, then we will
look for a file called newsletter_en.vm. This file should be in the classpath.obj1
- This object will be passed to the velocity template with the name "obj1".obj2
- This object will be passed to the velocity template with the name "obj2".obj3
- This object will be passed to the velocity template with the name "obj3".obj4
- This object will be passed to the velocity template with the name "obj4".obj5
- This object will be passed to the velocity template with the name "obj5".options
-
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |