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()
EmailOptionsIf
getTemplateName
in interface EmailOptionsIf
public void setTemplateName(java.lang.String templateName)
EmailOptionsIf
setTemplateName
in interface EmailOptionsIf
templateName
- The templateName to set.public java.lang.String getCountryCode()
EmailOptionsIf
getCountryCode
in interface EmailOptionsIf
public void setCountryCode(java.lang.String countryCode)
EmailOptionsIf
setCountryCode
in interface EmailOptionsIf
countryCode
- The countryCode to set.public int getContentType()
EmailOptionsIf
getContentType
in interface EmailOptionsIf
public void setContentType(int contentType)
EmailOptionsIf
setContentType
in interface EmailOptionsIf
contentType
- the contentType to setpublic NameValueIf[] getCustomAttrs()
EmailOptionsIf
getCustomAttrs
in interface EmailOptionsIf
public void setCustomAttrs(NameValueIf[] customAttrs)
EmailOptionsIf
setCustomAttrs
in interface EmailOptionsIf
customAttrs
- The customAttrs to set.public boolean isAttachInvoice()
EmailOptionsIf
isAttachInvoice
in interface EmailOptionsIf
public void setAttachInvoice(boolean attachInvoice)
EmailOptionsIf
setAttachInvoice
in interface EmailOptionsIf
attachInvoice
- the attachInvoice to setpublic boolean isCreateInvoice()
EmailOptionsIf
isCreateInvoice
in interface EmailOptionsIf
public void setCreateInvoice(boolean createInvoice)
EmailOptionsIf
setCreateInvoice
in interface EmailOptionsIf
createInvoice
- the createInvoice to setpublic java.lang.String getFullAttachmentFilename()
EmailOptionsIf
getFullAttachmentFilename
in interface EmailOptionsIf
public void setFullAttachmentFilename(java.lang.String fullAttachmentFilename)
EmailOptionsIf
setFullAttachmentFilename
in interface EmailOptionsIf
fullAttachmentFilename
- the fullAttachmentFilename to setpublic java.lang.String getFriendlyAttachmentName()
EmailOptionsIf
getFriendlyAttachmentName
in interface EmailOptionsIf
public void setFriendlyAttachmentName(java.lang.String friendlyAttachmentName)
EmailOptionsIf
setFriendlyAttachmentName
in interface EmailOptionsIf
friendlyAttachmentName
- the friendlyAttachmentName to setpublic boolean isDeleteAttachmentAfterSend()
EmailOptionsIf
true
, the attachment is deleted after being sent. The default value
is false
.isDeleteAttachmentAfterSend
in interface EmailOptionsIf
public void setDeleteAttachmentAfterSend(boolean deleteAttachmentAfterSend)
EmailOptionsIf
true
, the attachment is deleted after being sent. The default value
is false
.setDeleteAttachmentAfterSend
in interface EmailOptionsIf
deleteAttachmentAfterSend
- the deleteAttachmentAfterSend to setpublic java.lang.String getCustom1()
getCustom1
in interface EmailOptionsIf
public void setCustom1(java.lang.String custom1)
setCustom1
in interface EmailOptionsIf
custom1
- the custom1 to setpublic java.lang.String getCustom2()
getCustom2
in interface EmailOptionsIf
public void setCustom2(java.lang.String custom2)
setCustom2
in interface EmailOptionsIf
custom2
- the custom2 to setpublic java.lang.String getCustom3()
getCustom3
in interface EmailOptionsIf
public void setCustom3(java.lang.String custom3)
setCustom3
in interface EmailOptionsIf
custom3
- the custom3 to setpublic int getCustomInt1()
getCustomInt1
in interface EmailOptionsIf
public void setCustomInt1(int customInt1)
setCustomInt1
in interface EmailOptionsIf
customInt1
- the customInt1 to setpublic int getCustomInt2()
getCustomInt2
in interface EmailOptionsIf
public void setCustomInt2(int customInt2)
setCustomInt2
in interface EmailOptionsIf
customInt2
- the customInt2 to setpublic java.lang.String getFromAddress()
EmailOptionsIf
getFromAddress
in interface EmailOptionsIf
public void setFromAddress(java.lang.String fromAddress)
EmailOptionsIf
setFromAddress
in interface EmailOptionsIf
fromAddress
- the fromAddress as a String to setpublic java.lang.String getReplyToAddress()
EmailOptionsIf
getReplyToAddress
in interface EmailOptionsIf
public void setReplyToAddress(java.lang.String replyToAddress)
EmailOptionsIf
setReplyToAddress
in interface EmailOptionsIf
replyToAddress
- the replyToAddress as a String to setpublic java.lang.String getBccEmails()
EmailOptionsIf
getBccEmails
in interface EmailOptionsIf
public void setBccEmails(java.lang.String bccEmails)
EmailOptionsIf
setBccEmails
in interface EmailOptionsIf
bccEmails
- the bccEmails to setpublic java.lang.String getEmailAddr()
EmailOptionsIf
getEmailAddr
in interface EmailOptionsIf
public void setEmailAddr(java.lang.String emailAddr)
EmailOptionsIf
setEmailAddr
in interface EmailOptionsIf
emailAddr
- the emailAddr to setpublic boolean isDoBlindCopy()
EmailOptionsIf
isDoBlindCopy
in interface EmailOptionsIf
public void setDoBlindCopy(boolean doBlindCopy)
EmailOptionsIf
setDoBlindCopy
in interface EmailOptionsIf
doBlindCopy
- the doBlindCopy to setpublic boolean isAsync()
EmailOptionsIf
isAsync
in interface EmailOptionsIf
public void setAsync(boolean async)
EmailOptionsIf
setAsync
in interface EmailOptionsIf
async
- the async to setpublic java.lang.String getToAddress()
EmailOptionsIf
getToAddress
in interface EmailOptionsIf
public void setToAddress(java.lang.String toAddress)
EmailOptionsIf
setToAddress
in interface EmailOptionsIf
toAddress
- the toAddress to setpublic java.lang.String getCcEmails()
EmailOptionsIf
getCcEmails
in interface EmailOptionsIf
public void setCcEmails(java.lang.String ccEmails)
EmailOptionsIf
setCcEmails
in interface EmailOptionsIf
ccEmails
- the ccEmails to setpublic java.lang.String getContent()
EmailOptionsIf
getContent
in interface EmailOptionsIf
public void setContent(java.lang.String content)
EmailOptionsIf
setContent
in interface EmailOptionsIf
content
- the content to setpublic java.lang.String getSubject()
EmailOptionsIf
getSubject
in interface EmailOptionsIf
public void setSubject(java.lang.String subject)
EmailOptionsIf
setSubject
in interface EmailOptionsIf
subject
- the subject to setpublic boolean isCreateBarcode()
EmailOptionsIf
isCreateBarcode
in interface EmailOptionsIf
public void setCreateBarcode(boolean createBarcode)
EmailOptionsIf
setCreateBarcode
in interface EmailOptionsIf
createBarcode
- the createBarcode to setpublic void setBarcodeContent(java.lang.String barcodeContent)
setBarcodeContent
in interface EmailOptionsIf
barcodeContent
- the barcode content to set.public java.lang.String getBarcodeContent()
getBarcodeContent
in interface EmailOptionsIf
Copyright © 2018 DS Data Systems UK Ltd.