|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jelly.TagSupport
org.apache.commons.jelly.tags.email.EmailTag
public class EmailTag
Basic tag for sending an email. Supports one attachment, multiple to addresses delimited by ";", multiple cc addresses, etc.
Field Summary | |
---|---|
private java.io.File |
attachment
file attachment |
private org.apache.commons.jelly.expression.Expression |
cc
who to cc |
private boolean |
encodeXML
whether we should encode the XML body as text |
private org.apache.commons.jelly.expression.Expression |
from
who to send the message as |
private org.apache.commons.logging.Log |
logger
|
private org.apache.commons.jelly.expression.Expression |
message
mail message |
private org.apache.commons.jelly.expression.Expression |
server
smtp server |
private org.apache.commons.jelly.expression.Expression |
subject
mail subject |
private org.apache.commons.jelly.expression.Expression |
to
who to send to |
Fields inherited from class org.apache.commons.jelly.TagSupport |
---|
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
---|---|
EmailTag()
|
Method Summary | |
---|---|
void |
doTag(org.apache.commons.jelly.XMLOutput xmlOutput)
Execute the tag |
void |
setAttach(java.io.File attachment)
Set the email attachment for the message. |
void |
setCC(org.apache.commons.jelly.expression.Expression cc)
";" seperated list of people to cc |
void |
setEncodeXML(boolean encodeXML)
Sets whether we should encode the XML body as text or not. |
void |
setFrom(org.apache.commons.jelly.expression.Expression from)
Set the from address for the message |
void |
setMessage(org.apache.commons.jelly.expression.Expression message)
Set the message body. |
void |
setServer(org.apache.commons.jelly.expression.Expression server)
Set the smtp server for the message. |
void |
setSubject(org.apache.commons.jelly.expression.Expression subject)
Set the email subject |
void |
setTo(org.apache.commons.jelly.expression.Expression to)
";" seperated list of people to send to |
Methods inherited from class org.apache.commons.jelly.TagSupport |
---|
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private org.apache.commons.logging.Log logger
private org.apache.commons.jelly.expression.Expression server
private org.apache.commons.jelly.expression.Expression from
private org.apache.commons.jelly.expression.Expression to
private org.apache.commons.jelly.expression.Expression cc
private org.apache.commons.jelly.expression.Expression subject
private org.apache.commons.jelly.expression.Expression message
private java.io.File attachment
private boolean encodeXML
Constructor Detail |
---|
public EmailTag()
Method Detail |
---|
public void setServer(org.apache.commons.jelly.expression.Expression server)
public void setFrom(org.apache.commons.jelly.expression.Expression from)
public void setTo(org.apache.commons.jelly.expression.Expression to)
public void setCC(org.apache.commons.jelly.expression.Expression cc)
public void setSubject(org.apache.commons.jelly.expression.Expression subject)
public void setMessage(org.apache.commons.jelly.expression.Expression message)
public void setAttach(java.io.File attachment) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void setEncodeXML(boolean encodeXML)
public void doTag(org.apache.commons.jelly.XMLOutput xmlOutput) throws org.apache.commons.jelly.JellyTagException
org.apache.commons.jelly.JellyTagException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |