public class JSMailManager extends JSBaseScriptableObject
Constructor and Description |
---|
JSMailManager() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
(JavaScript Function) getEmailAddressFromFirstLastName(java.lang.String theFirstLastName)
get an email address for a user from their first last name.
|
java.lang.String |
(JavaScript Function) getEmailAddressFromUserName(java.lang.String theUserName)
get an email address for a user from their username
|
java.lang.String |
(JavaScript Function) getFirstLastName(java.lang.String theUserName)
get a Whole Name for a user from their username
|
void |
(JavaScript Function) 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 |
(JavaScript Function) 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)
Send an email with attached files.
|
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isConst, isEmpty, isExtensible, isSealed, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
public void (JavaScript Function) 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 (JavaScript Function) 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)
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.public java.lang.String (JavaScript Function) getEmailAddressFromFirstLastName(java.lang.String theFirstLastName)
theFirstLastName
- the first and last name separated by a spacepublic java.lang.String (JavaScript Function) getEmailAddressFromUserName(java.lang.String theUserName)
theUserName
- the usernamepublic java.lang.String (JavaScript Function) getFirstLastName(java.lang.String theUserName)
theUserName
- the usernameCopyright © 2017 MediaBeacon, Inc. All Rights Reserved.