| Attributes |
| Name | Required | Request-time | Type | Description |
| from | no | yes | java.lang.String | The e-mail address from whom the message is sent, or set the context-param org.apache.taglibs.mailer2.from |
| subject | no | yes | java.lang.String | The subject of the e-mail message |
| to | no | yes | java.lang.String | The e-mail address to send the message to |
| cc | no | yes | java.lang.String | The e-mail address to send the message to as cc |
| bcc | no | yes | java.lang.String | The e-mail address to send the message to as bcc |
| replyto | no | yes | java.lang.String | The e-mail address to reply-to |
| importance | no | yes | java.lang.String | The importance of the message, either "low", "normal" or "high" |
| type | no | yes | java.lang.String | The Content-Type of the message, default "text/plain" |
| encoding | no | yes | java.lang.String | The character set encoding of the message |
| background | no | yes | java.lang.String | Whether the mail should be sent in a background thread, default true. If true then no feedback (e.g. exceptions) will be returned to the user. ServletContext.log() is used instead |
| mimemessage | no | no | java.lang.String | The name of a JNDI lookup javax.mail.internet.MimePartDataSource |
| session | no | yes | java.lang.String | The name of a JNDI lookup javax.mail.Session |
| server | no | yes | java.lang.String | The name of the mail server, default localhost, or set the context-param org.apache.taglibs.mailer2.server |
| port | no | yes | int | The port of the mail server, default 25, or set the context-param org.apache.taglibs.mailer2.port |
| username | no | yes | java.lang.String | The username to use with PLAIN or LOGIN SMTP authentication, or set the context-param org.apache.taglibs.mailer2.username |
| password | no | yes | java.lang.String | The password to use with PLAIN or LOGIN SMTP authentication, or set the context-param org.apache.taglibs.mailer2.password |
| var | no | no | java.lang.String | Name of variable to store message in the scope indicated by the scope attribute, instead of sending it directly |
| scope | no | yes | java.lang.String | Scope to store message in instead of sending it directly, either "page" (default), "request", "session", or "application" |