public interface EmailMgrIf
| Modifier and Type | Method and Description |
|---|---|
Emailer |
getEmailer()
Used to get a new Emailer object used to send the E mails
|
boolean |
isEmailValid(java.lang.String emailAddr)
Determines whether the eMail address is valid
|
EmailIf |
notifySysAdmin(java.lang.String message,
EmailOptionsIf options) |
void |
refreshConfigs()
Setup variables needed to send the mail
|
void |
sendHTML(EmailOptionsIf options)
Send a HTML-only email message to the specified recipient, with the options all specified in
the EmailOptions object.
|
void |
sendHTML(java.lang.String toAddressString,
java.lang.String theSubject,
java.lang.String theContentHTML,
boolean doBlindCopy,
java.lang.String bccEmails,
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 fromAddressString,
java.lang.String theSubject,
java.lang.String theContentHTML,
boolean doBlindCopy,
java.lang.String bccEmails,
boolean async)
Send a HTML-only email message to the specified recipient and from address, with the
specified subject and HTML content.
|
void |
sendHTML(java.lang.String toAddressString,
java.lang.String fromAddressString,
java.lang.String replyToAddressString,
java.lang.String theSubject,
java.lang.String theContentHTML,
boolean doBlindCopy,
java.lang.String bccEmails,
boolean async)
Send a HTML-only email message to the specified recipient and from address, 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)
Deprecated.
|
EmailIf |
sendNewPasswordEmail1(java.lang.String emailAddr,
java.lang.String newPassword,
Customer cust,
EmailOptionsIf options)
Sends a new password to user who has forgotten password.
|
void |
sendOrderConfirmationEmail(java.lang.String sessionId,
int orderId,
java.lang.String mailSubject,
int languageId)
Deprecated.
|
EmailIf |
sendOrderConfirmationEmail1(java.lang.String sessionId,
int orderId,
int langIdForOrder,
EmailOptionsIf options)
An order confirmation email is sent after submitting an order.
|
void |
sendStockReorderEmail(java.lang.String emailAddr,
java.lang.String productName,
int productQuantity,
int productId,
java.lang.String sku)
Send an email to warn that a product stock level has fallen below a pre-defined level
|
EmailIf |
sendTemplateEmailTo(int customerId,
java.lang.String message,
EmailOptionsIf options)
Used to send a template based email to a receiver
|
void |
sendTemplateEmailToCustomer(int customerId,
java.lang.String templateName,
java.lang.String message,
java.lang.String countryCode)
Deprecated.
|
void |
sendText(EmailOptionsIf options)
Send a Text email message to the specified recipient, with the options all specified in
the EmailOptions object.
|
void |
sendText(java.lang.String toAddressString,
java.lang.String theSubject,
java.lang.String theContentText,
boolean doBlindCopy,
java.lang.String bccEmails,
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 theSubject,
java.lang.String theContentText,
boolean doBlindCopy,
java.lang.String bccEmails,
boolean async)
Send a text-only email message to the specified recipient and from Address 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,
java.lang.String bccEmails,
boolean async)
Send a text-only email message to the specified recipient and from Address with the specified
subject and text content.
|
void |
sendWelcomeEmail(int customerId,
java.lang.String mailSubject,
java.lang.String countryCode)
Deprecated.
|
EmailIf |
sendWelcomeEmail1(int customerId,
EmailOptionsIf options)
A welcome email is sent after registration
|
void refreshConfigs()
throws java.lang.Exception
java.lang.Exception - an unexpected exceptionvoid sendHTML(EmailOptionsIf options) throws com.konakart.app.KKException
options - Email Optionscom.konakart.app.KKException - an unexpected KKException exceptionvoid sendHTML(java.lang.String toAddressString,
java.lang.String fromAddressString,
java.lang.String replyToAddressString,
java.lang.String theSubject,
java.lang.String theContentHTML,
boolean doBlindCopy,
java.lang.String bccEmails,
boolean async)
throws com.konakart.app.KKException
toAddressString - TO: addressfromAddressString - From address - if null the store default is usedreplyToAddressString - Reply To address - if null the store default is usedtheSubject - the subject linetheContentHTML - the HTML body of the emaildoBlindCopy - if true add the defined Blind Copy address, if false do not.bccEmails - Semicolon separated list of blind copy email addresses.async - set to true to send the mail asynchronously or false to send it synchronouslycom.konakart.app.KKException - an unexpected KKException exceptionvoid sendHTML(java.lang.String toAddressString,
java.lang.String fromAddressString,
java.lang.String theSubject,
java.lang.String theContentHTML,
boolean doBlindCopy,
java.lang.String bccEmails,
boolean async)
throws com.konakart.app.KKException
toAddressString - TO: addressfromAddressString - From address - if null the store default is usedtheSubject - the subject linetheContentHTML - the HTML body of the emaildoBlindCopy - if true add the defined Blind Copy address, if false do not.bccEmails - Semicolon separated list of blind copy email addresses.async - set to true to send the mail asynchronously or false to send it synchronouslycom.konakart.app.KKException - an unexpected KKException exceptionvoid sendHTML(java.lang.String toAddressString,
java.lang.String theSubject,
java.lang.String theContentHTML,
boolean doBlindCopy,
java.lang.String bccEmails,
boolean async)
throws com.konakart.app.KKException
toAddressString - TO: addresstheSubject - the subject linetheContentHTML - the HTML body of the emaildoBlindCopy - if true add the defined Blind Copy address, if false do not.bccEmails - Semicolon separated list of blind copy email addresses.async - set to true to send the mail asynchronously or false to send it synchronouslycom.konakart.app.KKException - an unexpected KKException exceptionvoid sendText(EmailOptionsIf options) throws com.konakart.app.KKException
options - Email Optionscom.konakart.app.KKException - an unexpected KKException exceptionvoid sendText(java.lang.String toAddressString,
java.lang.String fromAddressString,
java.lang.String replyToAddressString,
java.lang.String theSubject,
java.lang.String theContentText,
boolean doBlindCopy,
java.lang.String bccEmails,
boolean async)
throws com.konakart.app.KKException
toAddressString - TO: addressfromAddressString - From address - if null the store default is usedreplyToAddressString - Reply To address - if null the store default is usedtheSubject - the subject linetheContentText - the plan text body of the maildoBlindCopy - if true add the defined Blind Copy address, if false do not.bccEmails - Semicolon separated list of blind copy email addresses.async - set to true to send the mail asynchronously or false to send it synchronouslycom.konakart.app.KKException - an unexpected KKException exceptionvoid sendText(java.lang.String toAddressString,
java.lang.String fromAddressString,
java.lang.String theSubject,
java.lang.String theContentText,
boolean doBlindCopy,
java.lang.String bccEmails,
boolean async)
throws com.konakart.app.KKException
toAddressString - TO: addressfromAddressString - From address - if null the store default is usedtheSubject - the subject linetheContentText - the plan text body of the maildoBlindCopy - if true add the defined Blind Copy address, if false do not.bccEmails - Semicolon separated list of blind copy email addresses.async - set to true to send the mail asynchronously or false to send it synchronouslycom.konakart.app.KKException - an unexpected KKException exceptionvoid sendText(java.lang.String toAddressString,
java.lang.String theSubject,
java.lang.String theContentText,
boolean doBlindCopy,
java.lang.String bccEmails,
boolean async)
throws com.konakart.app.KKException
toAddressString - TO: addresstheSubject - the subject linetheContentText - the plan text body of the maildoBlindCopy - if true add the defined Blind Copy address, if false do not.bccEmails - Semicolon separated list of blind copy email addresses.async - set to true to send the mail asynchronously or false to send it synchronouslycom.konakart.app.KKException - an unexpected KKException exceptionboolean isEmailValid(java.lang.String emailAddr)
emailAddr - the emailAddr@Deprecated
void sendNewPasswordEmail(java.lang.String emailAddr,
java.lang.String newPassword,
java.lang.String mailSubject,
java.lang.String countryCode)
throws java.lang.Exception
emailAddr - the emailAddrnewPassword - the newPasswordmailSubject - the email subject line. If null it is retrieved from the first line of the new
password template.countryCode - the countryCodejava.lang.Exception - an unexpected exceptionEmailIf sendNewPasswordEmail1(java.lang.String emailAddr, java.lang.String newPassword, Customer cust, EmailOptionsIf options) throws java.lang.Exception
emailAddr - the emailAddrnewPassword - the newPasswordcust - the custoptions - the optionsjava.lang.Exception - an unexpected exceptionvoid sendStockReorderEmail(java.lang.String emailAddr,
java.lang.String productName,
int productQuantity,
int productId,
java.lang.String sku)
throws java.lang.Exception
emailAddr - the emailAddrproductName - the productNameproductQuantity - the productQuantityproductId - the productIdsku - the skujava.lang.Exception - an unexpected exception@Deprecated
void sendWelcomeEmail(int customerId,
java.lang.String mailSubject,
java.lang.String countryCode)
throws java.lang.Exception
customerId - the customerIdmailSubject - the email subject line. If null it is retrieved from the first line of the
template.countryCode - the countryCodejava.lang.Exception - an unexpected exceptionEmailIf sendWelcomeEmail1(int customerId, EmailOptionsIf options) throws java.lang.Exception
customerId - the customerIdoptions - the optionsjava.lang.Exception - an unexpected exception@Deprecated
void sendOrderConfirmationEmail(java.lang.String sessionId,
int orderId,
java.lang.String mailSubject,
int languageId)
throws java.lang.Exception
sessionId - the sessionIdorderId - the orderIdmailSubject - the email subject line. If null it is retrieved from the first line of the
template.languageId - the languageIdjava.lang.Exception - an unexpected exceptionEmailIf sendOrderConfirmationEmail1(java.lang.String sessionId, int orderId, int langIdForOrder, EmailOptionsIf options) throws java.lang.Exception
sessionId - the sessionIdorderId - the orderIdlangIdForOrder - the langIdForOrderoptions - the optionsjava.lang.Exception - an unexpected exception@Deprecated
void sendTemplateEmailToCustomer(int customerId,
java.lang.String templateName,
java.lang.String message,
java.lang.String countryCode)
throws java.lang.Exception
customerId - the customerIdtemplateName - the templateNamemessage - the messagecountryCode - the countryCodejava.lang.Exception - an unexpected exceptionEmailIf sendTemplateEmailTo(int customerId, java.lang.String message, EmailOptionsIf options) throws java.lang.Exception
customerId - the customerIdmessage - the messageoptions - the optionsjava.lang.Exception - an unexpected exceptionEmailIf notifySysAdmin(java.lang.String message, EmailOptionsIf options) throws java.lang.Exception
message - The information within the message may be used by the template. Typically this
might be an exception message.options - Options for the emailjava.lang.Exception - an unexpected exceptionEmailer getEmailer() throws com.konakart.app.KKException
com.konakart.app.KKException - an unexpected KKException exceptionCopyright © 2018 DS Data Systems UK Ltd.