TagLib: Mail

sendmessage

Description

Sends an email message. If an error occurs during processing, the tag body will be evaluated and the remainder of the page will be skipped.

Tag Body

JSP

Restrictions

None.

Attributes

The tag has the following attributes:  

Attribute

Description

Req'd?

msgname Name of Message bean relating to message to send. Yes
fwdindex Specifies index of message to forward. No
replyindex Specified index of message to reply to. No

Properties


Example(s)

<%-- sendmessage tag example --%>
...
<mail:context/>
...
<mail:message id="foo">
  <mail:set property="to" value="$(to)"/>
  <mail:set property="subject" value="$(subject)"/>
  <mail:set property="text" value="$(text)"/>
</mail:message>
...
<mail:sendmessage msgname="foo">
<p>Fail.
</mail:sendmessage>
...