> <cffunction name="onApplicationEnd" returnType="void" output="false">
> 
>               <cfargument name="applicationScope" required="true">
> 
> <cfscript>
>                       stArgs = structNew();
>                       stArgs.class="myContext";
>               </cfscript>
> 
>               <cfinvoke component="ObjectChef" 
> method="createObj" returnvariable="loader" 
> argumentCollection="#stArgs#"/>
> 
>               <cfset res = loader.shutdown()>
> 
>               <cfmail to="him" from="me" subject="app 
> end">#res#</cfmail>
> 
>       </cffunction>
> 
> </cfcomponent>
> ========================================================
> 
> When I restart CFMX and request a page, the 
> onApplicationStart fires and successfully sends out an email, 
> but onApplicationEnd consistently fails to send out the 
> confirmation email. If I move the code to a simple .cfm file 
> it is processed correctly, so it must be related to onApplicationEnd.

Just for fun, can you try removing the OUTPUT attribute from your
onApplicationEnd function?

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!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250427
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to