public class CreateEmailCommand extends SQLCommand
CREATE_EMAIL EMAIL_ACCOUNT sender
[BODY content]|[TEMPLATE template_key]
RECIPIENTS recipient_list[,...]
[CC_RECIPIENTS cc_recipient_list[,...]]
[BCC_RECIPIENTS bcc_recipient_list[,...]]
[SUBJECT subject]
[ATTACHMENTS attachments_list[,...]]
[BASE_OBJ base]
Usage
/* send email from EMAIL_ACCOUNT @12~2@1 with TEMPLATE @16~1@1 to 1@1~1@1,1@2~1@1,1@3~1@1*/
CREATE_EMAIL EMAIL_ACCOUNT @12~2@1
TEMPLATE @16~1@1
RECIPIENTS 1@1~1@1,1@2~1@1,1@3~1@1
THREAD MODE: SINGLE THREADED command
CURSOR_SIZE| Constructor and Description |
|---|
CreateEmailCommand(Connection connection,
Pattern pattern)
std.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEmailRecipient(MutableDataSource mds,
Contact recipient,
java.lang.String type,
DBEmailSend email)
Add values to email recipient object.
|
protected void |
execute(Parser p)
execute the command.
|
DBEmailSend |
generateDBEmail(MutableDataSource mds,
java.lang.String subject,
DBEmailAccount sender,
java.lang.String[] recipientList,
java.lang.String[] ccRecipientList,
java.lang.String[] bccRecipientList,
DBEmailTemplate template,
java.lang.String content,
java.lang.String[] attachmentsList,
DBObject base)
Generating DBEmail
|
java.lang.String |
getColumnName(int col)
implements getColumnName of interface CommandBuildResultsPlugin.
|
java.lang.String |
getColumnType(int col)
Gets the column type for the given column index, starting at one
|
java.lang.String |
getRecordID(int row)
the record ID
|
java.lang.Object |
getValue(int row,
int col)
the value for this row, column
|
appendResult, appendResult, getCursorName, getRecordKey, isExecuteOnlyexecute, extMakeThreadName, getConnection, getPattern, getRawTitle, getTitle, makeThreadName, recordCall, setTitleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRawTitlepublic CreateEmailCommand(Connection connection, Pattern pattern)
connection - the connectionpattern - the patternprotected void execute(Parser p) throws java.lang.Exception
public DBEmailSend generateDBEmail(MutableDataSource mds, java.lang.String subject, DBEmailAccount sender, java.lang.String[] recipientList, java.lang.String[] ccRecipientList, java.lang.String[] bccRecipientList, DBEmailTemplate template, java.lang.String content, java.lang.String[] attachmentsList, DBObject base) throws java.lang.Exception
mds - mutable data sourcesubject - subjectsender - sender addressrecipientList - list of recipientccRecipientList - list of cc recipientbccRecipientList - list of BCC recipienttemplate - templatecontent - contentattachmentsList - list of attachmentbase - base objectjava.lang.Exception - a serious problempublic void addEmailRecipient(MutableDataSource mds, Contact recipient, java.lang.String type, DBEmailSend email) throws java.lang.Exception
mds - mutable datasourcerecipient - recipienttype - type of recipientemail - email send objectjava.lang.Exception - a serious problempublic java.lang.String getColumnName(int col)
col - the column number to namepublic java.lang.String getRecordID(int row)
row - the row indexpublic java.lang.String getColumnType(int col)
col - the column indexpublic java.lang.Object getValue(int row,
int col)
row - the row indexcol - the columnstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.