Question

We are currently experiencing intermittent mail queue stoppages. I'm seeking diagnostic help in another area.

In the meantime, is there a way to restart the CF mail queue without restarting the service as a whole?

CF8 standard Win2k3

Solution: We are now checking the age of the oldest file in the mail queue. When it exceeds a set age (currently 30 min) the mail queue is restarted.

Was it helpful?

Solution

Yes there is.

<cfset sFactory = CreateObject("java","coldfusion.server.ServiceFactory")>
<cfset MailSpoolService = sFactory.mailSpoolService>
<cfset MailSpoolService.stop()>
<cfset MailSpoolService.start()>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top