|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I have a problem that causing some headaches. I have an email form, where a salesperson fills a request and then sends it to his/hers supervisor. after the supervisor receives the email form, he/she makes changes if necessary and then sends the email form to a manager. everything works fine and the information is stored in a sql server db. the problem is if the smtp server goes down for some reason, the link is broken. the information is still put into the db, but i have to warn the users that something happened to smtp server and the form did not reach its recipient. is there a way to catch this error with an <cftry> <cfcatch> statement and block the <cfquery> insert statement? thanks for the help in advance |
|
#2
|
||||
|
||||
|
What version do you have?
CFMX allows back-up SMTP servers. Read this You could use <cfcatch>. I didn't see any SMTP-specific types of errors in the list, but you could just use type="COM.Allaire.ColdFusion.Request.Timeout" since it will most likely just time out when going down. Hope that helps. |
|
#3
|
|||
|
|||
|
thanks bocmaxima,
we have cf mx 6.0 and it doesn't support failto attribute. it would have been nice. the weird thing is it doesn't time out. ( |
|
#4
|
|||
|
|||
|
Running CFMX 6.0 is totally insane. It should never even have been released. Use the free upgrade to 6.1 which fixes more bugs and adds more features than I could list here even if I typed all day.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#5
|
|||
|
|||
|
well, CFMX 6.1 has its own problems. we have a huge database that has beeing used since 1980s. Every date field in this db is julian so they are numeric and represented by numbers and dated back to 1860.
15844 for 12/29/2003 for example. one problem with cfmx 6.1 is it misses a day in 1870. every single time i query the db i have to use something like datediff(d, '1/1/2005', '.../1860') so when we switched to 6.1 we realized every god damn report is one day off. so go figure. isn't that special to go thru 100+ pages of templates to correct the date problem? |
|
#6
|
|||
|
|||
|
That sounds like a JDBC driver issue not a CF issue...
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > smtp server problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|