public class SendMail extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
asHtml |
protected StringList |
bcc |
protected StringList |
blobXpath |
protected StringList |
cc |
static Composer |
COMPOSER |
protected OperationContext |
ctx |
protected String |
from |
static String |
ID |
protected boolean |
isStrict |
protected static org.apache.commons.logging.Log |
log |
protected javax.mail.Session |
mailSession |
protected String |
message |
protected StringList |
replyto |
protected boolean |
rollbackOnError |
protected String |
subject |
protected StringList |
to |
protected UserManager |
umgr |
protected String |
viewId |
| Constructor and Description |
|---|
SendMail() |
| Modifier and Type | Method and Description |
|---|---|
protected Mailer.Message |
createMessage(DocumentModel doc,
String message,
Map<String,Object> map) |
protected String |
getContent() |
DocumentModel |
run(DocumentModel doc) |
protected void |
send(DocumentModel doc) |
protected static final org.apache.commons.logging.Log log
public static final Composer COMPOSER
public static final String ID
protected OperationContext ctx
protected UserManager umgr
protected String from
protected StringList to
protected javax.mail.Session mailSession
protected StringList cc
protected StringList bcc
protected StringList replyto
protected String subject
protected String message
protected boolean asHtml
protected StringList blobXpath
protected boolean rollbackOnError
protected boolean isStrict
protected String viewId
public DocumentModel run(DocumentModel doc) throws Exception
Exceptionprotected void send(DocumentModel doc) throws Exception
Exceptionprotected Mailer.Message createMessage(DocumentModel doc, String message, Map<String,Object> map) throws Exception
ExceptionCopyright © 2019 Nuxeo SA. All rights reserved.