2
votes

I have a coldfusion mail spooler locking up on me everytime I send out an email using this code:

<cfmail TO="[email protected]" 
FROM="[email protected]" 
SUBJECT="Your Order!!!!!"  type="html">
hello
</cfmail>

Only way I can get this thing to email out of the spooler is to stop IIS and start IIS. Then it flushes through.

If I use

<cfmail TO="[email protected]" 
FROM="[email protected]" 
SUBJECT="Your Order!!!!!" spoolEnable="false" type="html">
hello
</cfmail>

Then the email goes straight through no problem, I would like to use the spooler since it has a less lag for the user.

What's going on with my coldfusion spooler?? I am running 9,0,0,251028 (standard)

BTW: I have tried doing (with no luck):

<cfset sFactory = CreateObject("java","coldfusion.server.ServiceFactory")>
<cfset MailSpoolService = sFactory.mailSpoolService>
<cfset MailSpoolService.stop()>
<cfset MailSpoolService.start()>
1
Your two code examples are identical, also why haven't you patched up to 901? - Busches
Sorry I fixed up the code example. I will update soon, been busy with lots of other fires. - user1322114
You need to do some basic debugging first, like check the mail logs and/or enable debugging ie debug=true. - Leigh
I am getting (in coldfusion-out.log) 03/22 10:27:13 Information [scheduler-4] - Mail: 'Hello' From:'[email protected]' To:'[email protected]' was successfully sent using 192.0.0.250 - user1322114
And I am lots of these in my mail.log - Next mail spool run in 15 seconds. - user1322114

1 Answers

0
votes

This issue seems to be around since at least CF6.x and we haven't been able to find a permanent solution for it. Restarting the mail service is far from perfect.

Some have found that excluding the CF mail spooling directory from the virus scans helped, others say that sending emails with CFMAIL instead of with a cfscript did the job.

Here's a similar SO post and here's one from the Adobe forums