Checking SMTP service before application load

2008-06-26 Thread Keith McGee
Is there a way to check to status of the SMTP server/service before I load an application in ColdFusion? Then not load the application if the server/service is down? ~| Adobe® ColdFusion® 8 software 8 is the most important and

Re: Checking SMTP service before application load

2008-06-26 Thread Raymond Camden
The Admin API lets you check a few things, but doesn't let you do the verify option that you have in the cf admin. That may be a good addition to the api. You could always do a cfmail w/ a try/catch in onApplicationStart. You could mail to some dummy account that gets auto-emptied. That seems a

Re: Checking SMTP service before application load

2008-06-26 Thread Andy Allan
Whilst the Admin API doesn't expose the verify mail server option, as Ray states, you can still drop down and use the ServiceFactory if that option is available to you. Whilst not officially support it's what the CFAdmin uses anyway. Andy ps I logged a bug about the lack of verityServer() in