Quick Tip on Railo Email Send Queues

Posted by Mark Drew on code on July 22, 2010

Tagged under railo,getrailo

 

When you send an email from the <cfmail> tag in Railo, there are times that for whatever reason the email won't be sent. Rather than digging through a bunch of folders to see what hasn't been sent, you can do a couple of things.

You can view all the task spool in the Railo Web Administrator -> Services -> Tasks page by going to http://<your server>/railo-context/admin/web.cfm?action=services.tasks

Or you can programatically get the task spool by doing the following code:

<cfadmin action="getSpoolerTasks" type="web" password="#password#" returnVariable="tasks">

<cfdump var="#tasks#">

You get a query by return that has the type, the item, how many times it has tried and an array of exceptions that have happened, this way you can manually or programatically deal with the errors.


 




comments powered by Disqus