Dave, CFMAIL uses JavaMail but it spools requests, causing the calling thread to not block. This is important because a transient mail delivery failure/delay will not impact the performance of the calling page. I managed to access the cfmail functionality using the coldfusion.server.ServiceFactory. It seems to work pretty well.
Nathan, We're using POJO, no JSP. A webservice call seems like a good solution as well. Leon -----Original Message----- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 5:37 PM To: CF-Talk Subject: RE: accessing cfmail functionality from java > I have come across the need to do a <cfmail> from a java class. We > have some thirdparty software that runs on our ColdFusion server that > uses the JavaMail system. It turns out JavaMail does a blocking call > to send out mail. Does anyone know of an easy way to access the cfmail > functionality from java? The CFMAIL tag uses JavaMail as well. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240766 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54