Using ColdFusion with mail servers
Adding e-mail to your ColdFusion applications lets you respond automatically to user requests.
You can use e-mail in your ColdFusion applications in many different ways, including the
following:
•
Trigger e-mail messages based on users' requests or orders.
•
Allow users to request and receive additional information or documents through e-mail.
•
Confirm customer information based on order entries or updates.
•
Send invoices or reminders, using information pulled from database queries.
ColdFusion offers several ways to integrate e-mail into your applications. To send e-mail, you
generally use the Simple Mail Transfer Protocol (SMTP). To receive e-mail, you use the Post
Office Protocol (POP) to retrieve e-mail from the mail server. To use e-mail messaging in your
ColdFusion applications, you must have access to an SMTP server and/or a valid POP account.
In your ColdFusion application pages, you use the
mail, respectively. The following sections describe how to use the ColdFusion e-mail features and
show examples of these tags.
Sending e-mail messages
Before you configure ColdFusion to send e-mail messages, you must have access to an SMTP e-
mail server. Also, before you run application pages that refer to the e-mail server, you can
configure the ColdFusion MX Administrator to use the SMTP server. If you later need to
override the SMTP server information, you can specify a new mail server in the
of the
tag.
cfmail
To configure ColdFusion for e-mail:
In the ColdFusion MX Administrator, select Server Settings > Mail Server.
1
In the Mail Server box, enter the name or IP address of your SMTP mail server.
2
(Optional) Change the Server Port and Connection Timeout default settings.
3
Select the Verify Mail Server Connection check box to make sure ColdFusion can access your
4
mail server.
(Optional) Change the Server Port and Connection Timeout default settings.
5
Click Submit Changes.
6
ColdFusion saves the settings. The page displays a message indicating success or failure for
connecting to the server.
For more information on the Administrator's mail settings, see Configuring and Administering
ColdFusion MX.
790
Chapter 35: Sending and Receiving E-Mail
and
tags to send and receive e-
cfmail
cfpop
attribute
server
Need help?
Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?
Questions and answers