Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
mail:send
Sends SMTP email messages to one or more recipients.
Syntax
<mail:send to="recipient,recipient" [from="your e-mail"] [subject="subject of message"] [body="message body"] [replyto="your alternate e-mail address"] [contenttype="content format"] [charset="character set"] />Parameters
to (required)
- Comma-separated list of recipients' e-mail addresses to receive the message
from (optional)
- E-mail address of the sender. If a value is not specified, the value
cs.emailreturnto
in the Sites properties is used.
subject (optional)
- Subject of the message.
body (optional)
- Body of the mail message.
replyto (optional)
- Alternate e-mail address to which you wish replies to go. If a value is not specified, replies go to the sender's address specified in the
from
parameter. The address will not be visible until the receipient replies.
contenttype (optional)
- Type of content you are sending. The default is
text/html
.
charset (optional)
- Character set of your content. The default is the system default.
Description
To send mail, the Sites properties file must contain valid values for the
cs.emailhost
andcs.emailreturnto
properties. To receive mail, the Sites properties file must contain valid values for thecs.emailhost
,cs.emailaccount
, andcs.emailpassword
properties.Error Numbers
The possible values of
errno
include:
Value Description -202 Cannot Send Mail
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.