Copy link to clipboard
Copied
(I can't find any recent threads about this regarding CF 9.01)
We love all the new bells and whistles about coldfusion 9 mail delivery, but one bug is rather annoying.
Occasionally mail piles up in the spool folder. The only solution seems to be to reset CF. (I tried changing the spool interval to a lower value, and saving that temporarily, thinking it might force the spooler to kick in, to no avail).
However, when CF is reset, every single item in the spool is processed normally, within the spool interval time frame (we use 20 seconds).
Is there some way to tell CF to process the spool folder "on demand"? Resetting the CF service is an awfully big hammer to use to resolve this snafu.
Thanks in advance.
Byron
We've seen that happen for years, even with CF8. Not sure where I found the code below, but it
will restart CF mail processing without restarting the entire CF service:
<cfset sFactory = CreateObject("java","coldfusion.server.ServiceFactory")>
<cfset MailSpoolService = sFactory.mailSpoolService>
<cfset MailSpoolService.stop()>
-reed
Copy link to clipboard
Copied
We've seen that happen for years, even with CF8. Not sure where I found the code below, but it
will restart CF mail processing without restarting the entire CF service:
<cfset sFactory = CreateObject("java","coldfusion.server.ServiceFactory")>
<cfset MailSpoolService = sFactory.mailSpoolService>
<cfset MailSpoolService.stop()>
-reed
Copy link to clipboard
Copied
Thank you Reed, very much appreciated.
Copy link to clipboard
Copied
UPDATE:
Reed, your code was essential to fixing my problem, but has a typo. The word "stop" should be "start"
Correct code is :
Irregardless, thanks for giving me the code, I was stranded otherwise, and it was an easy typo to figure out.
🙂
Copy link to clipboard
Copied
more than 3 years after, this is an WIN !
thanks to both of you for sharing.