public class JSMailManager extends JSBaseScriptableObject
Constructor and Description |
---|
JSMailManager() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
jsFunction_getEmailAddressFromFirstLastName(java.lang.String theFirstLastName)
get an email address for a user from their first last name.
|
java.lang.String |
jsFunction_getEmailAddressFromUserName(java.lang.String theUserName)
get an email address for a user from their username
|
java.lang.String |
jsFunction_getFirstLastName(java.lang.String theUserName)
get a Whole Name for a user from their username
|
void |
jsFunction_sendEmail(java.lang.String theToEmailAddress,
java.lang.String theSubject,
java.lang.String theMessage,
java.lang.String theMime,
java.lang.String theFromEmailAddress,
java.lang.String theCCEmailAddress)
Send an email using the default sender address from the MB server gui
|
void |
jsFunction_sendEmailWithAttachments(java.lang.String theToEmailAddresses,
java.lang.String theFromEmailAddress,
java.lang.String theCCEmailAddress,
java.lang.String theSubject,
java.lang.String theMessage,
org.mozilla.javascript.NativeArray theAttachments,
boolean theEmbedAttachments,
java.lang.Boolean theIsSync)
Send an email with attached files.
|
void |
jsFunction_sendTemplatedEmail(java.lang.String theEmailAddress,
java.lang.String theSubject,
java.lang.String theMessage,
java.lang.String theActionResolveURL,
boolean theAddAttach,
Parameters theParameters)
Sends an email using template.
|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
public void jsFunction_sendEmail(java.lang.String theToEmailAddress, java.lang.String theSubject, java.lang.String theMessage, java.lang.String theMime, java.lang.String theFromEmailAddress, java.lang.String theCCEmailAddress)
theToEmailAddress
- address to send the mail totheSubject
- the mail's subjecttheMessage
- the mail's messagetheMime
- the mail's messagetheFromEmailAddress
- the from email address (may be null)theCCEmailAddress
- the cc email address (may be null)public void jsFunction_sendEmailWithAttachments(java.lang.String theToEmailAddresses, java.lang.String theFromEmailAddress, java.lang.String theCCEmailAddress, java.lang.String theSubject, java.lang.String theMessage, org.mozilla.javascript.NativeArray theAttachments, boolean theEmbedAttachments, java.lang.Boolean theIsSync)
theToEmailAddresses
- The addresses to send the email to. If the email should be sent to multiple addresses, a comma
space or semicolon should be used to separate the addresses passed to this argument.theFromEmailAddress
- The from address of the email.theCCEmailAddress
- The carbon copy address of the email.theSubject
- The email's subject.theMessage
- The email's body.theAttachments
- The email's attachments.theEmbedAttachments
- Should Content-ID headers be set for each attachment? This allows the attachments to
appear within the html body of the email. The generated headers' values will have a "theAttachment
argument to this function.theIsSync
- should sending email process be synchronous? Parameter was added to make "convert asset" and "send notification" visual wf nodes work together.
Don't use it anywhere else.public void jsFunction_sendTemplatedEmail(java.lang.String theEmailAddress, java.lang.String theSubject, java.lang.String theMessage, java.lang.String theActionResolveURL, boolean theAddAttach, Parameters theParameters)
theEmailAddress
- the email addresstheSubject
- the subjecttheMessage
- the messagetheActionResolveURL
- the resolver urltheAddAttach
- is add attachment?theParameters
- the template parameterspublic java.lang.String jsFunction_getEmailAddressFromFirstLastName(java.lang.String theFirstLastName)
theFirstLastName
- the first and last name separated by a spacepublic java.lang.String jsFunction_getEmailAddressFromUserName(java.lang.String theUserName)
theUserName
- the usernamepublic java.lang.String jsFunction_getFirstLastName(java.lang.String theUserName)
theUserName
- the usernameCopyright © 2023 MediaBeacon, Inc. All Rights Reserved.