|
There are three settings for email that must be set in XUD as well as the other applications' configuration files. The first is the mail library that is included at the top of the config file. Make sure that only one library is specified, that the file itself is available, and the component is configured properly. You can determine which email components are available on any Administrator page by selecting "Run Diagnostics" from the "Tools" menu.
Which component is available will determine which include line to use:
| To use this Email Component: |
Use this #include line: |
| CDONTS |
<!--#include file="XcCDONTSLib.asp"--> |
| CDOSYS |
<!--#include file="XcCDOSYSLib.asp"--> |
| CDOSYS – using the pickup folder on the server. |
<!--#include file="XcCDOSYSPickupLib.asp"--> |
| ASPEmail |
<!--#include file="XcASPEmailLib.asp"--> |
| ASPMail |
<!--#include file="XcASPMailLib.asp"--> |
| ASPQMail |
<!--#include file="XcASPQmailLib.asp"--> |
| ASPSmartMail |
<!--#include file="XcSmartmailLib.asp"--> |
| BambooSmtp |
<!--#include file="XcBambooSMTPLib.asp"--> |
| JMail |
<!--#include file="XcJmailLib.asp"--> |
| SMTPMail |
<!--#include file="XcSmtpMailLib.asp"--> |
The gsAdminEmail setting is used to define the “From” email address used for all emails sent from the program. This should typically be set to an email address that is local to your site. That is, it should look like the example below, only substitute your domain name for example.com:
gsAdminEmail = "myname@example.com"
Since most ISPs will filter all outbound email that does not look like it is valid for any of the networks/domains that they host, you probably will need to use an email address that is local to your site for the gsAdminEmail setting. If this is set to an invalid value, most ISP's will block the outgoing message and it will appear as if your web site is not able to send any email messages.
If your gsAdminEmail setting looks like this:
gsAdminEmail = "myname@example.com (Account Management)"
the "Account Management" will appear at the name in the "From:" field in most email applications. You can set this to anything you want, but be sure that there is only a single space and no other characters between the end of the email address and the (, or emails may not be sent.
The gsMailHost setting should contain the address of the mail server that you will be using to send email. If your site is hosted by an ISP, you will need to ask them for the mail server address if they have not already provided it when you signed up for hosting. This might not be the same setting you would use to send mail through your own email program, such as Outlook. If you are using the Microsoft CDONTS or CDOSYS (pickup folder library) component, for sending email, this setting is not actually required.
Your gsMailHost setting should look like this, substituting "smtp.example.com" for the actual address of your email server:
gsMailHost = "smtp.example.com"
|