I would create an XML file that contains hosting customers that should
be emailed directly. Then after reading this file in from the error
template loop through the mail and if it finds the site from the xml
object from the cgi.server_name file to mailto whatever the xml file
defines.

custom_error_emails.xml
<?xml version="1.0" encoding="utf-8"?>
<customers>
<customer1>
<customerName1>www.cfm-applications.com</customerName1>
<customerEmailTo1>[EMAIL PROTECTED]</customerEmailTo1>
</customer1>
</customers>

error_template.cfm

1. read in xml file
2. parse xml file
3. loop through xml file looking for a matching cgi.server_name value.
4. use cfmail to send mail from customerEmailTo1
5. if no match found, email to yourself.

cfhelp wrote:

> I have clients on the server that would want to receive error notices. Can
> they pass an email for the CC to the error template?
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to