Use the Mail page of the ColdFusion Administrator to specify a mail server to send automated e-mail messages. ColdFusion supports the Simple Mail Transfer Protocol (SMTP) for sending e-mail messages and the Post Office Protocol (POP) for retrieving e-mail messages from your mail server. To use e-mail messaging in your ColdFusion applications, you must have access to an SMTP server and a POP account.
The ColdFusion Enterprise Edition supports mail-server failover, as well as additional mail delivery options.
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 might not be sent immediately. If ColdFusion is extremely busy or has a large queue, delivery could occur after some delay.
The following table describes basic mail server settings:
Option |
Description |
---|---|
Mail Server |
Enter a valid mail server for sending dynamic SMTP mail messages in the text box. You can enter an Internet address, such as mail.company.com, or the IP address of the mail server, such as 127.0.0.1. |
Username |
Enter the username for the mail server, if required. |
Password |
Enter the password for the mail server, if required. |
Verify Mail Server Connection |
Verifies that ColdFusion can connect to your specified mail server after you submit this form. Whether or not you use this option, send a test message to verify that your mail server connection works. |
Server Port |
Enter the number of the port on which the mail server is running. Contact your server administrator if you are unsure of the appropriate port number. |
Backup Mail Servers (Enterprise Edition only) |
Enter zero or more backup servers for sending SMTP mail messages. You can enter an Internet address, such as mail.company.com, or the IP address of the mail server, such as 127.0.0.1. Separate multiple servers with a comma. If the mail server requires authentication, prepend the mail server with the username and password, as follows: username:password@mailserveraddress To use a port number other than the default (25), specify mailserveraddress:portnumber |
Maintain Connection To Mail Server (Enterprise Edition only) |
Keeps mail server connections open after sending a mail message. Enabling this option can enhance performance when delivering multiple messages. |
Connection Timeout (seconds) |
Enter the number of seconds that ColdFusion should wait for a response from the mail server before timing out. |
Enable SSL Socket Connections To Mail Server |
Enables SSL encryption on the connections to the mail server. |
Enable TLS Connection To Mail Server |
Enables Transport Level Security (TLS) on the connection to the mail server. |
The following table describes mail server spool settings:
Option |
Description |
---|---|
Spool Interval (Seconds) |
Enter the interval, in seconds, at which you want the mail server to process spooled mail. |
Mail Delivery Threads (Enterprise Edition only) |
Enter the maximum number of simultaneous threads used to deliver spooled mail. |
Spool Mail Messages For Delivery To (Memory spooling available for Enterprise Edition only) |
Routes outgoing mail messages to the mail spooler. If you disable this option, ColdFusion delivers outgoing mail messages immediately. In ColdFusion Enterprise Edition, you can spool messages to disk (slower, but messages persist across shutdowns) or to memory (faster, but messages do not persist). You can override this setting in the cfmail tag. |
Maximum Number Of Messages Spooled To Memory (Enterprise Edition only) |
Enter the maximum number of messages that spool to memory before switching to disk spooling. |
Select preferences for handling mail logs, as described in the following table:
Option |
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 the following:
|
Log All Mail Messages Sent By ColdFusion |
Saves to a log file the To, From, and Subject fields of all e-mail messages. |
ColdFusion writes sent-mail and mail-error logs to the following directories:
The following table describes the e-mail log files:
Log |
Description |
---|---|
mailsent.log |
Records sent e-mail messages. |
mail.log |
Records general e-mail errors. |
Mail Character Set Settings area
Select preferences for the default mail character set, as described in the following table:
Option |
Description |
---|---|
Default CFMail CharSet |
From the drop-down list box, select the default character set that the cfmail tag uses. The default value is UTF-8. If the majority of your e-mail clients use a specific character set, you can use this setting to switch to that locale-specific character set. For example, Japanese mail is typically sent using the ISO-2022-JP character set. |