User Guide
240 Chapter 2: ColdFusion Tags
cfmail
Description
Sends an e-mail message that optionally contains query output, using an SMTP server.
Category
Forms tags, Internet Protocol tags
Syntax
<cfmail
to = "recipient"
from = "sender"
cc = "copy_to"
bcc = "blind_copy_to"
subject = "msg_subject"
replyto = "reply_to_addr"
failto = "fail_message_addr"
username = "user name"
password = "password"
wraptext = "column number"
charset = "character encoding"
type = "msg_type"
mimeattach = "path"
query = "query_name"
group = "query_column"
groupcasesensitive = "yes" or "no"
startrow = "query_row"
maxrows = "max_msgs"
server = "serverspecs"
port = "port_id"
mailerid = "headerid"
timeout = "seconds"
spoolenable = "yes" or "no">
(Optional) Mail message body and/or cfhttpparam tags
</cfmail>
See also
cfmailparam, cfmailpart, cfpop, cfftp, cfhttp, cfldap, Wrap
History
ColdFusion MX 6.1:
• Added the following attributes: charset, failto, replyto, username, password and
wraptext.
• Added support for multiple mail servers in the server attribute.
• Added several configuration options to the ColdFusion MX Administrator Mail Settings page.
ColdFusion MX: Added the
SpoolEnable attribute.