Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 1198

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Using External Resources
If a message is not delivered because of an error, ColdFusion writes it to this directory:
• In Windows: \CFusion\Mail\Undelivr
• On UNIX: /opt/coldfusion/mail/undelivr
The error log entry that corresponds to the undelivered message contains the name of the file written to the UnDelivr
(or undelivr) directory.
Note: To have ColdFusion try to resend a message that it could not deliver, move the message file from the Undelivr
directory to the Spool directory.
For more information about the mail logging settings in the ColdFusion Administrator, see Configuring and
Administering ColdFusion.
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 access the e-mail server, you can configure the ColdFusion Administrator to use
the SMTP server. If you must override the ColdFusion Administrator SMTP server setting for any messages, you can
specify a new mail server in the
Configure ColdFusion for e-mail
In the ColdFusion Administrator, select Server Settings > Mail.
1
2
In the Mail Server box, enter the name or IP address of your SMTP mail server.
(Optional) Change the Server Port and Connection Timeout default settings.
3
Select the Verify Mail Server Connection option to make sure ColdFusion can access your mail server.
4
5
If your mail server does not use port 25, the default, SMTP port, change the Server Port default settings.
Depending on your ColdFusion edition, the Mail page in the Administrator has additional options that you can use
6
to configure and optimize ColdFusion mail behavior. Select these options as appropriate.
Click Submit Changes.
7
ColdFusion saves the settings. The page displays a message indicating success or failure for connecting to the server.
ColdFusion Enterprise edition includes additional mail spooling and delivery features. For more information on these
features, and for information on the ColdFusion Administrator mail settings, see Configuring and Administering
ColdFusion.
Sending SMTP e-mail with the cfmail tag
The
tag provides support for sending SMTP e-mail from within ColdFusion applications. The
cfmail
like the cfoutput tag, except that
The
tag supports all the attributes and commands that you use with
cfmail
table describes basic
cfmail
attributes, see the cfmail description in the CFML Reference.
Attribute
Description
The subject of the message.
subject
from
The e-mail address of the sender.
attribute of the cfmail tag.
server
outputs the generated text as an SMTP mail message rather than to a page.
cfmail
tag attributes that you could use to send a simple e-mail message. For a complete list of
Last updated 1/20/2012
, including
. The following
cfoutput
query
1193
tag is
cfmail

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents