When running a task in commandbox, I want to flush the email spooler to ensure that all emails that were generated in my task are delivered. Is this possible?
I’m execute the commandbox task using
cfexecute, which launches commandbox in a new process. What can happen is that emails can get stuck in the spool and not delivered until the next time commandbox is launched.