Mail/Mail Logging

You use the ColdFusion Administrator Mail page of the ColdFusion Administrator to specify a mail server to send automated e-mail messages. ColdFusion Server supports the Simple Mail Transfer Protocol (SMTP) for sending e-mail and the Post Office Protocol (POP) for retrieving e-mail from your mail server. To use e-mail messaging in your ColdFusion applications, you must have access to an SMTP server and/or a POP account.

The ColdFusion implementation of SMTP mail uses a spooled architecture. This means that when a cfmail tag is processed in an application page, the messages generated may not be sent immediately. If ColdFusion is extremely busy or has a large queue, delivery could occur after some delay.


Note

For more information about the cfmail tag, see the Developing ColdFusion Applicationsbook.


To configure a mail server:

  1. On the ColdFusion Administrator Mail page, enter a mail server for sending dynamic SMTP mail messages. You can enter an Internet address, such as mail.company.com, or the IP address of a mail server, such as 127.0.0.1.
  2. To cause ColdFusion Server to verify the connection to the mail server, select Verify Mail Server Connection. If the connection fails, you receive an error message.
  3. In the Server Port text box, enter the mail server port number. The default value (25) is usually correct. If you are unsure of the appropriate port number, contact your server administrator.
  4. In the Spool Interval text box, enter the interval, in seconds, at which you want the mail server to process spooled mail.
  5. In the Connection Timeout box, enter the number of seconds ColdFusion Server waits for a response from the mail server.
  6. Click Submit Changes.

    Tip

    Send a test e-mail message to verify that the e-mail server is working, regardless of whether you enable the Verify Mail Server Connection option.


Mail Logging

Select preferences for handling mail logs, as described in the following table:
Setting
Description
Error Log Severity
From the drop-down list box, select the type of SMTP-related error message to write to a log file. The options are: Warning, Information, and Error.
Log all e-mail messages sent by ColdFusion
To have the content of all e-mail messages that ColdFusion Server generates written to a log file, enable this option.

ColdFusion Server writes sent mail and mail error logs to the file:

The following table describes the e-mail log files:
Log
Description
mailsent.log
Records sent e-mail
mail.log
Records general e-mail errors



Banner.Novgorod.Ru