I think I would work with the import routines and define them better..... For example, force the developers to import using a DTS package that has some queries as a task to update all the emails to test email addresses. I would not create some kind of work around routine that tries to "figure out" if it's dev or live. What you really need is well defined test data.
-mark -----Original Message----- From: Beru [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 10, 2008 9:10 AM To: CF-Talk Subject: redirecting cfmail to a different destination using CF Hello, I would like to have all mail going out of our CF servers to be redirected to another mail destination: we have a bunch of applications running that use data from db to send mail, and often our developpers just copy tables from prod db to test a new functionality. Result is some clients are spammed with test mails (at the least); this is what I am asked to correct. - One way is to define rules on the smtp server to rewrite the destination address to a unique junk email box, but this means we have to fiddle with smtp rules... pffff... - The other way around would have been to use cfmailparam to do this, but I find no practical way to include this in the existing codebase without adding code to each page Any ideas? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312308 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

