public class DBEmailSend extends DBEmailSend
Emails can be created with dynamic email components, such as personalized greetings, signatures, phone numbers etc.
These are produced by calling specifying a field path enclosed within dollar signs within the email body.
For example, to create a personalized greeting you could type:
Dear $recipient.name,Sir/Madam$,
This would create an email that reads:
Dear John Doe,
(if the name field was not filled in the record for the contact the Sir/Madam text would be substituted for the name of the contact)
Information can also be retrieved from the senders details by starting the path the prefix of "sender.".
For example.
Please contact $sender.name$ for more information
DBObject.DenormalizeActionDBCLASS_GID, DBCLASS_NAME, DEFAULT_MESSAGE_PARSER, DO_NOT_CHECK_EMAIL_VARIABLE, EMAIL_QUEUEBOOTSTRAP_COLOR_DANGER, BOOTSTRAP_COLOR_PRIMARY, BOOTSTRAP_COLOR_SUCCESS, BOOTSTRAP_COLOR_WARNING, HTML_ATTCH_NAME, MESSAGE_IDATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS| Constructor and Description |
|---|
DBEmailSend(DBClass def,
DataSource dataSource)
Std.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
eventFieldUpdated(DBField field,
java.lang.Object previous,
GlobalKey previousKey,
FldParams params)
update dependent fields.
|
protected void |
extPreSaveRecord()
Additional functionality WHILE saving this record to the database.
|
addReceiptTracking, changeStatus, checkBodyLink, createEmailRecipient, createRecipientLinkedAttachments, disableCleanUp, enableCleanUp, extAutoEnterCreate, extFixUp, extGetDerivedGlobalKey, extGetDerivedValue, extIsOnChange, extPostSaveRecord, extPreValidate, extSetValue, extValidateField, extValidateRecord, findEnableEmailReadTracking, findFormat, findMessageParser, findRecipientType, findReplyTo, findSendStatus, findTemplateId, findTemplateUsed, findTmpAttachment, getCharset, getCss, getDaysLinkAttachmentAvailable, getDbObjectKey, getDbObjectRestUrl, getEnableEmailReadTracking, getFailTx, getFormat, getLastSent, getMessageParser, getOnCompleteCommand, getOnErrorCommand, getRecipientSend, getRecipientType, getReplyTo, getReplyToEmail, getRuntimeLinkedAttachments, getSendStatus, getTemplateId, getTemplateJson, getTemplateUsed, getTmpAttachment, getTmpAttachmentKey, getVariableParseMsg, hasImageEmbedded, isDryRun, isDynamic, isEmbedRemoteImages, isExcludeNoEmailRecipients, isLinkedAttachment, isReadReceipt, isSendAsOneEmail, isSendCopyToSender, isServerReceipt, parseMessage, send, sendMail, setCharset, setCss, setDaysLinkAttachmentAvailable, setDbObjectKey, setDbObjectRestUrl, setDryRun, setEmbedRemoteImages, setEnableEmailReadTracking, setExcludeNoEmailRecipients, setFailTx, setFormat, setHasImageEmbedded, setLastSent, setLinkedAttachment, setMessageParser, setOnCompleteCommand, setOnErrorCommand, setReadReceipt, setRecipientSend, setRecipientType, setReplyTo, setReplyToEmail, setSendAsOneEmail, setSendCopyToSender, setSendStatus, setServerReceipt, setSMTP, setTemplateId, setTemplateJson, setTemplateUsed, setTmpAttachment, setTmpAttachmentKey, setVariableParseMsg, throttleEmail, wrapContentcheckMessage, createAttachment, displayName, doesEmailExistInFolder, findAccount, findEnteredBy, findKey, findSender, getAccount, getAttachmentHTML, getAttachments, getBody, getDisplayHTML, getDisplaySender, getDisplayStatusHTML, getEnteredBy, getHtmlBody, getID, getMessageId, getRecipients, getRecipientsHTML, getSender, getSenderEmail, getSentDate, getSubject, handleBodyMultiPart, handleBodyPart, isRealWorld, makeQuery, moveMessage, readBody, readFromMessage, readRecipients, readSender, reAssociate, sendAsErrorMesssage, setAccount, setBody, setEnteredBy, setHtmlBody, setID, setMessageId, setSender, setSenderEmail, setSentDate, setSubjectaddReloadEventListener, archiveCheck, autoEnterCreate, calculateValue, calculateValue, calculateValue, callingRestoreByJournal, changeThreadMode, checkCreateAccess, checkDelete, checkDeleteAccess, checkModifyAccess, checkModifyAccess, checkReadAccess, clearCache, copy, copyFields, copyIncludeField, copyInwardLinks, delete, denormalizedResult, displayLogName, displayValue, doSearch, dump, equals, eventDataLoaded, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extGetValue, extIsMandatory, extMarkSavePoint, extPostDeleteRecord, extPreDeleteRecord, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extUndelete, extValidateDelete, fetchLinkHolder, findGlobalKey, findGlobalKey, findGlobalKey, findGlobalKey, findLinkedObject, findLinkedObject, findLinkedObject, findRawData, fireEventDataLoaded, fixUp, forceLockedTransaction, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getChangedFieldInfo, getChangedFields, getDate, getDate, getDate, getDate, getDate, getDefaultValue, getDisableOnChangeEvent, getDouble, getDouble, getDouble, getDouble, getDouble, getFieldDouble, getFieldInt, getFieldLong, getFieldString, getFormattedString, getFormattedString, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getInt, getInt, getInt, getInt, getInt, getInt, getInwardLinkage, getKeyString, getKeyValue, getLinkedObject, getLinkedObject, getLinkedObject, getLinkedObjectByKey, getLinkedRowId, getLinkedRowId, getLinkedRowIdByData, getLinkHolder, getLockedTransaction, getLong, getLong, getLong, getLong, getLong, getLong, getMutableArrayValue, getMutableArrayValue, getOriginalKey, getOriginalValue, getOriginalValue, getProcessedValue, getPureValue, getRawData, getRawValue, getRawValue, getRowId, getRowKey, getSecondaryCacheGroupKey, getSrcLayerID, getString, getString, getString, getString, getString, getString, getValue, getValue, getValue, getValue, hasAutoChanged, hasAutoChanged, hasChanged, hasChangedByUser, hasChangedByUserField, hasChangedByUserField, hasFieldChanged, hasFieldChanged, hashCode, hasStoredResult, iCheckDeleteAccess, iCheckModifyAccess, iCheckReadAccess, iGetDenormalizedMap, iGetRawValue, iPlaceDenormalizedResult, iPostSaveOrDeleteRecord, iPreSaveOrDeleteRecord, iPreValidate, iRaiseEvents, iSaveOrDeleteRecord, isBrokenLink, isBrokenLink, isChanged, isDataCacheKnownToBeDirty, isDeleted, isEmpty, iSetValue, isForceReindex, isKeyWordField, isMandatory, isNew, isNull, isNull, isOnChange, isReindex, iValidateRecord, lastTouched, makeArchiveDataLoader, makeClone, makeDataLoader, makeDenormalizedDoc, makeLinkedArray, makeModifyAccessException, makeSearchPlan, makeWriteProvider, manualDenormalizeOnSave, markSavePoint, optLockedTransaction, registerWatchedObject, reindex, releaseDenormalized, removeReloadEventListener, restoreByJournal, rollbackTo, setBoolean, setBoolean, setBoolean, setBoolean, setDisableOnChangeEvent, setDouble, setDouble, setInt, setInt, setLong, setLong, setRawData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, touch, undelete, validateField, validateRecord, validateSubTypepublic DBEmailSend(DBClass def, DataSource dataSource) throws java.lang.Exception
def - The class of this objectdataSource - The datasource for this objectjava.lang.Exception - A serious problem occurred@OverridingMethodsMustInvokeSuper
protected void eventFieldUpdated(@Nonnull
DBField field,
@Nullable
java.lang.Object previous,
@Nullable
GlobalKey previousKey,
@Nullable
FldParams params)
throws java.lang.Exception
eventFieldUpdated in class DBEmailSendfield - The field updated.previous - The previous value for this field.previousKey - The previous keyparams - The parameters usedjava.lang.Exception - a serious problem@OverridingMethodsMustInvokeSuper
protected void extPreSaveRecord()
throws java.lang.Exception
extPreSaveRecord in class DBEmailSendjava.lang.Exception - A serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.