Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dealing with Undeliverable Emails - CFMX

Status
Not open for further replies.

cfdeveloper

Programmer
Nov 20, 2003
144
GB
Hi there, I'm working on a undelivered email tracking application. I have CFMX installed on my pc. I want to check if there are any undelivered emails in the "Undelivr" folder. If true and provided the last modified date of the file in the undeliverable directory is older than 1 day, I want to delete it, else I want to move it to the spool directory.

I also want to check if there is any file in the "spool" folder that is 0 KB, and if there is I want to delete it.

I found this really intutive article:
It is for CF 5 and below versions.

I don't see the "Mail" key in the registry on the server.
HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Mail

I was wanting to know if ColdFusion MX stores this differently? Is it ok to create a new key under "CurrentVersion" calling it "Mail" and giving it the full directory path?

I would apprecaite your help.
Best regards,
cfcoder
 
I would imagine that for MX the registry entries would be under something like HKEY_LOCAL_MACHINE\SOFTWARE\Macromedia\CFusionMX

As far as creating new keys goes, I'm not even going to touch that one! Any time you touch the registry you're flirting with disaster...



Hope This Helps!

Ecobb

"My work is a game, a very serious game." - M.C. Escher
 
I was wanting to know if ColdFusion MX stores this differently? Is it ok to create a new key under "CurrentVersion" calling it "Mail" and giving it the full directory path?

What's the point? If you are going to supply the path yourself then why not hard code it into the script?

As Ecobb mentioned, don't play about with the registry unless you know what you are doing. The fact that you are asking if it is ok should tell you not to touch it. [wink]

Hope this helps

Wullie

Fresh Look - Quality Coldfusion Hosting

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top