JavaScript | Actions | CSS | Documentation |
  | Components | Databases | NAS | Links

Search the Workbench:

Description: CFMail generates SMTP mail from within ColdFusion templates.

Syntax:
<CFMAIL CC = “Carbon copy addresses” FROM = “Sender Address” GROUP = “Group Name” MAXROWS = “Maximum Mail Messages” PORT = “SMTP TCP/IP Port” QUERY = “Query Name” SERVER = “SMTP Server Address” TYPE = “Message Type”>
Message
</CFMail>

What the CFMail component editor looks like.

Attribute

Description

Notes

CC

Carbon copy Addresses

Optional;one or more addresses separated by commas

From

Sender Address

Required

Group

Query column to group on

Optional

Maxrows

Maximum message to send

Optional

Port

TCP/IP SMTP Port

Optional

Query

<CFQuery> to draw data from

Optional; Email can be generated based on the results of a CFQuery.

Server

SMTP mail server

Optional

Subject

Message subject

Required

Timeout

Connection timeout interval

Optional

To

Recipient’s address

Required

Type

Message type

Optional

Example: The following is a simple email message based on a form submission.
<CFMAIL
FROM = “#FORM.Email#”
TO = “sales@a2zbooks.com”
SUBJECT = “Customer inquiry”>
The following customer inquiry was posted to our web site:
Name: #FORM.name#
Email: #FORM.Email#

Message:
#FORM.Message#

</CFMail>

Go Back to Previous Page

Have a question that you can´t find the answer to? Want to report a possible bug?

Send a help request to NetObjects Technical Support