ColdFusion MX Professional Projects

ColdFusion doesn't have a mail server of its own. To send e-mail, it uses a mail server that supports Simple Mail Transfer Protocol (SMTP), such as IIS or Exchange Server on Windows NT/2000, or sendmail on Linux and UNIX systems. ColdFusion uses Post Office Protocol (POP) for receiving e-mails. You need to consult the network administrator or the Internet Service Provider (ISP) to determine the host name or IP address of the SMTP server to configure the mail server for ColdFusion. You can configure the SMTP server in ColdFusion Administrator by accessing the Mail Server option on the Server Settings menu. You need to have the rights to log on to the Mail Server settings page. Otherwise, use the server attribute of the <cfmail> tag to change the settings. This attribute overrides the server setting configured in ColdFusion Administrator.

To add the mail server settings, perform the following steps:

  1. Open the ColdFusion Administrator application.

  2. Click the Mail Server option on the Server Settings menu in the left panel.

  3. Enter a valid SMTP server address in the Mail Server box.

  4. Check the Select the Verify Connection option.

  5. Click the Submit Changes button to accept the settings.

Figure 27.1 shows the administrative page for adding the Mail Server settings.

Figure 27.1: The Mail Server options.

Here are the various options available in the preceding page:

If you check the Verify Mail Server Connection option, ColdFusion tests the settings upon page submission. The output of the verification either succeeds, as shown in Figure 27.2, or fails, as shown in Figure 27.3.

Figure 27.2: The screen indicating successful verification.

Figure 27.3: The screen indicating that the verification wasn't successful.

Caution

Enter a valid SMTP or IP address in the Mail Server option on the ColdFusion Administrator page. Otherwise, your e-mails won't reach their destination.

Note

If you can connect to the server, it doesn't necessarily mean that the mail server is installed or running. It just means that the computer can be contacted.

Категории