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 String ID
protected OperationContext ctx
protected UserManager umgr
protected StringList to
protected javax.mail.Session mailSession
protected StringList cc
protected StringList bcc
protected StringList replyto
protected boolean asHtml
protected StringList blobXpath
protected boolean rollbackOnError
protected boolean isStrict
public SendMail()
public DocumentModel run(DocumentModel doc) throws freemarker.template.TemplateException, RenderingException, OperationException, javax.mail.MessagingException, IOException
freemarker.template.TemplateException
RenderingException
OperationException
javax.mail.MessagingException
IOException
protected String getContent() throws OperationException, IOException
OperationException
IOException
protected void send(DocumentModel doc) throws freemarker.template.TemplateException, RenderingException, OperationException, javax.mail.MessagingException, IOException
freemarker.template.TemplateException
RenderingException
OperationException
javax.mail.MessagingException
IOException
protected Mailer.Message createMessage(DocumentModel doc, String message, Map<String,Object> map) throws javax.mail.MessagingException, freemarker.template.TemplateException, RenderingException, IOException
javax.mail.MessagingException
freemarker.template.TemplateException
RenderingException
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.