public class EmailOptions extends java.lang.Object implements EmailOptionsIf
| Constructor and Description |
|---|
EmailOptions()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBarcodeContent()
Get barcode content (raw text)
|
java.lang.String |
getBccEmails()
Semicolon separated list of blind copy email addresses.
|
java.lang.String |
getCcEmails()
Semicolon separated list of carbon copy email addresses.
|
java.lang.String |
getContent()
content.
|
int |
getContentType()
Get the Email Content Type.
|
java.lang.String |
getCountryCode()
The two letter country code used to determine the correct template to use.
|
java.lang.String |
getCustom1() |
java.lang.String |
getCustom2() |
java.lang.String |
getCustom3() |
NameValueIf[] |
getCustomAttrs()
An array of name value pairs used to pass custom information to the Velocity engine.
|
int |
getCustomInt1() |
int |
getCustomInt2() |
java.lang.String |
getEmailAddr()
In the case of sendTemplateEmailToCustomer1() if the customerId doesn't reference a
registered customer then the email is sent to this address.
|
java.lang.String |
getFriendlyAttachmentName()
The friendly filename of an attachment that can be viewed from the eMail.
|
java.lang.String |
getFromAddress()
If the from Address is null the fromAddress defined in the store's configuration parameter
will be used.
|
java.lang.String |
getFullAttachmentFilename()
The complete filename of an attachment.
|
java.lang.String |
getReplyToAddress()
If the Reply To Address is null the rpleyToAddress defined in the store's configuration
parameter will be used.
|
java.lang.String |
getSubject()
subject.
|
java.lang.String |
getTemplateName()
The name of the template used to send the mail.
|
java.lang.String |
getToAddress()
toAddress.
|
boolean |
isAsync()
Set to true to send email asynchronously
|
boolean |
isAttachInvoice()
Set to true to attach the invoice to the email.
|
boolean |
isCreateBarcode()
Set to true to create the barcode to print on the email.
|
boolean |
isCreateInvoice()
Set to true to create the invoice (if it isn't already present) to attach to the email.
|
boolean |
isDeleteAttachmentAfterSend()
When set to
true, the attachment is deleted after being sent. |
boolean |
isDoBlindCopy()
Set to true to BCC an address
|
void |
setAsync(boolean async)
Set to true to send email asynchronously
|
void |
setAttachInvoice(boolean attachInvoice)
Set to true to attach the invoice to the email.
|
void |
setBarcodeContent(java.lang.String barcodeContent)
Set barcode content (raw text)
|
void |
setBccEmails(java.lang.String bccEmails)
Semicolon separated list of blind copy email addresses.
|
void |
setCcEmails(java.lang.String ccEmails)
Semicolon separated list of carbon copy email addresses.
|
void |
setContent(java.lang.String content)
content.
|
void |
setContentType(int contentType)
Set the Email Content Type.
|
void |
setCountryCode(java.lang.String countryCode)
The two letter country code used to determine the correct template to use.
|
void |
setCreateBarcode(boolean createBarcode)
Set to true to create the barcode to print on the email.
|
void |
setCreateInvoice(boolean createInvoice)
Set to true to create the invoice (if it isn't already present) to attach to the email.
|
void |
setCustom1(java.lang.String custom1) |
void |
setCustom2(java.lang.String custom2) |
void |
setCustom3(java.lang.String custom3) |
void |
setCustomAttrs(NameValueIf[] customAttrs)
An array of name value pairs used to pass custom information to the Velocity engine.
|
void |
setCustomInt1(int customInt1) |
void |
setCustomInt2(int customInt2) |
void |
setDeleteAttachmentAfterSend(boolean deleteAttachmentAfterSend)
When set to
true, the attachment is deleted after being sent. |
void |
setDoBlindCopy(boolean doBlindCopy)
Set to true to BCC an address
|
void |
setEmailAddr(java.lang.String emailAddr)
In the case of sendTemplateEmailToCustomer1() if the customerId doesn't reference a
registered customer then the email is sent to this address.
|
void |
setFriendlyAttachmentName(java.lang.String friendlyAttachmentName)
The friendly filename of an attachment that can be viewed from the eMail.
|
void |
setFromAddress(java.lang.String fromAddress)
If the from Address is null the fromAddress defined in the store's configuration parameter
will be used.
|
void |
setFullAttachmentFilename(java.lang.String fullAttachmentFilename)
The complete filename of an attachment.
|
void |
setReplyToAddress(java.lang.String replyToAddress)
If the Reply To Address is null the rpleyToAddress defined in the store's configuration
parameter will be used.
|
void |
setSubject(java.lang.String subject)
subject.
|
void |
setTemplateName(java.lang.String templateName)
The name of the template used to send the mail.
|
void |
setToAddress(java.lang.String toAddress)
toAddress.
|
public java.lang.String getTemplateName()
EmailOptionsIfgetTemplateName in interface EmailOptionsIfpublic void setTemplateName(java.lang.String templateName)
EmailOptionsIfsetTemplateName in interface EmailOptionsIftemplateName - The templateName to set.public java.lang.String getCountryCode()
EmailOptionsIfgetCountryCode in interface EmailOptionsIfpublic void setCountryCode(java.lang.String countryCode)
EmailOptionsIfsetCountryCode in interface EmailOptionsIfcountryCode - The countryCode to set.public int getContentType()
EmailOptionsIfgetContentType in interface EmailOptionsIfpublic void setContentType(int contentType)
EmailOptionsIfsetContentType in interface EmailOptionsIfcontentType - the contentType to setpublic NameValueIf[] getCustomAttrs()
EmailOptionsIfgetCustomAttrs in interface EmailOptionsIfpublic void setCustomAttrs(NameValueIf[] customAttrs)
EmailOptionsIfsetCustomAttrs in interface EmailOptionsIfcustomAttrs - The customAttrs to set.public boolean isAttachInvoice()
EmailOptionsIfisAttachInvoice in interface EmailOptionsIfpublic void setAttachInvoice(boolean attachInvoice)
EmailOptionsIfsetAttachInvoice in interface EmailOptionsIfattachInvoice - the attachInvoice to setpublic boolean isCreateInvoice()
EmailOptionsIfisCreateInvoice in interface EmailOptionsIfpublic void setCreateInvoice(boolean createInvoice)
EmailOptionsIfsetCreateInvoice in interface EmailOptionsIfcreateInvoice - the createInvoice to setpublic java.lang.String getFullAttachmentFilename()
EmailOptionsIfgetFullAttachmentFilename in interface EmailOptionsIfpublic void setFullAttachmentFilename(java.lang.String fullAttachmentFilename)
EmailOptionsIfsetFullAttachmentFilename in interface EmailOptionsIffullAttachmentFilename - the fullAttachmentFilename to setpublic java.lang.String getFriendlyAttachmentName()
EmailOptionsIfgetFriendlyAttachmentName in interface EmailOptionsIfpublic void setFriendlyAttachmentName(java.lang.String friendlyAttachmentName)
EmailOptionsIfsetFriendlyAttachmentName in interface EmailOptionsIffriendlyAttachmentName - the friendlyAttachmentName to setpublic boolean isDeleteAttachmentAfterSend()
EmailOptionsIftrue, the attachment is deleted after being sent. The default value
is false.isDeleteAttachmentAfterSend in interface EmailOptionsIfpublic void setDeleteAttachmentAfterSend(boolean deleteAttachmentAfterSend)
EmailOptionsIftrue, the attachment is deleted after being sent. The default value
is false.setDeleteAttachmentAfterSend in interface EmailOptionsIfdeleteAttachmentAfterSend - the deleteAttachmentAfterSend to setpublic java.lang.String getCustom1()
getCustom1 in interface EmailOptionsIfpublic void setCustom1(java.lang.String custom1)
setCustom1 in interface EmailOptionsIfcustom1 - the custom1 to setpublic java.lang.String getCustom2()
getCustom2 in interface EmailOptionsIfpublic void setCustom2(java.lang.String custom2)
setCustom2 in interface EmailOptionsIfcustom2 - the custom2 to setpublic java.lang.String getCustom3()
getCustom3 in interface EmailOptionsIfpublic void setCustom3(java.lang.String custom3)
setCustom3 in interface EmailOptionsIfcustom3 - the custom3 to setpublic int getCustomInt1()
getCustomInt1 in interface EmailOptionsIfpublic void setCustomInt1(int customInt1)
setCustomInt1 in interface EmailOptionsIfcustomInt1 - the customInt1 to setpublic int getCustomInt2()
getCustomInt2 in interface EmailOptionsIfpublic void setCustomInt2(int customInt2)
setCustomInt2 in interface EmailOptionsIfcustomInt2 - the customInt2 to setpublic java.lang.String getFromAddress()
EmailOptionsIfgetFromAddress in interface EmailOptionsIfpublic void setFromAddress(java.lang.String fromAddress)
EmailOptionsIfsetFromAddress in interface EmailOptionsIffromAddress - the fromAddress as a String to setpublic java.lang.String getReplyToAddress()
EmailOptionsIfgetReplyToAddress in interface EmailOptionsIfpublic void setReplyToAddress(java.lang.String replyToAddress)
EmailOptionsIfsetReplyToAddress in interface EmailOptionsIfreplyToAddress - the replyToAddress as a String to setpublic java.lang.String getBccEmails()
EmailOptionsIfgetBccEmails in interface EmailOptionsIfpublic void setBccEmails(java.lang.String bccEmails)
EmailOptionsIfsetBccEmails in interface EmailOptionsIfbccEmails - the bccEmails to setpublic java.lang.String getEmailAddr()
EmailOptionsIfgetEmailAddr in interface EmailOptionsIfpublic void setEmailAddr(java.lang.String emailAddr)
EmailOptionsIfsetEmailAddr in interface EmailOptionsIfemailAddr - the emailAddr to setpublic boolean isDoBlindCopy()
EmailOptionsIfisDoBlindCopy in interface EmailOptionsIfpublic void setDoBlindCopy(boolean doBlindCopy)
EmailOptionsIfsetDoBlindCopy in interface EmailOptionsIfdoBlindCopy - the doBlindCopy to setpublic boolean isAsync()
EmailOptionsIfisAsync in interface EmailOptionsIfpublic void setAsync(boolean async)
EmailOptionsIfsetAsync in interface EmailOptionsIfasync - the async to setpublic java.lang.String getToAddress()
EmailOptionsIfgetToAddress in interface EmailOptionsIfpublic void setToAddress(java.lang.String toAddress)
EmailOptionsIfsetToAddress in interface EmailOptionsIftoAddress - the toAddress to setpublic java.lang.String getCcEmails()
EmailOptionsIfgetCcEmails in interface EmailOptionsIfpublic void setCcEmails(java.lang.String ccEmails)
EmailOptionsIfsetCcEmails in interface EmailOptionsIfccEmails - the ccEmails to setpublic java.lang.String getContent()
EmailOptionsIfgetContent in interface EmailOptionsIfpublic void setContent(java.lang.String content)
EmailOptionsIfsetContent in interface EmailOptionsIfcontent - the content to setpublic java.lang.String getSubject()
EmailOptionsIfgetSubject in interface EmailOptionsIfpublic void setSubject(java.lang.String subject)
EmailOptionsIfsetSubject in interface EmailOptionsIfsubject - the subject to setpublic boolean isCreateBarcode()
EmailOptionsIfisCreateBarcode in interface EmailOptionsIfpublic void setCreateBarcode(boolean createBarcode)
EmailOptionsIfsetCreateBarcode in interface EmailOptionsIfcreateBarcode - the createBarcode to setpublic void setBarcodeContent(java.lang.String barcodeContent)
setBarcodeContent in interface EmailOptionsIfbarcodeContent - the barcode content to set.public java.lang.String getBarcodeContent()
getBarcodeContent in interface EmailOptionsIfCopyright © 2018 DS Data Systems UK Ltd.