| |||||||
| FRAMES NO FRAMES | |||||||
<mt:attach file="c:/temp/example.txt"/>
<mt:attach url="http://jakarta.apache.org/images/jakarta-logo.gif"/>
<mt:attach type="text/plain" name="First Attachment" encoding="utf-8">
This is the content of the first attachment. It contains utf-8 cháràctërs.
</mt:attach>
<mt:mail var="attachment1" from="john.doe@example.com" subject="First Mail">
<mt:addrecipient type="to">jane.doe@example.com</mt:addrecipient>
First mail
</mt:mail>
<mt:mail var="attachment2" from="jane.doe@example.com" subject="Second Mail">
<mt:addrecipient type="to" address="john.doe@example.com"/>
Second mail
</mt:mail>
<mt:mail from="digest@example.com" subject="Digest of two messages" type="multipart/digest">
<mt:addrecipient type="to" name="Digest User">digest@example.com</mt:addrecipient>
<mt:attach message="${attachment1}"/>
<mt:attach message="${attachment2}"/>
</mt:mail>
| Tag Information | |
| Tag Class | org.apache.taglibs.mailer2.AttachTag |
| TagExtraInfo Class | None |
| Body Content | JSP |
| Display Name | mt:attach |
| Attributes | ||||
| Name | Required | Request-time | Type | Description |
| filename | no | yes | java.lang.String | The name of a local file to attach to the part or mail |
| url | no | yes | java.lang.String | The url of a external resource to attach to the part or mail |
| type | no | yes | java.lang.String | The content-type of the body content of the attachment |
| name | no | yes | java.lang.String | The name of the attachment; this is the name under which the attachment can be saved |
| encoding | no | yes | java.lang.String | The encoding of the attachment, default unspecified |
| message | no | yes | javax.mail.internet.MimeMessage | A Message object stored with a previous <mt:mail var="..."> |
| Variables | No Variables Defined. |
| |||||||
| FRAMES NO FRAMES | |||||||