the email is not quoted:-) On 5/1/07, Asim Manzur <[EMAIL PROTECTED]> wrote: > > On my directorywatcher gateway I have a following CFC function. > > <cffunction access="public" name="onAdd" output="no"> > <cfargument name="CFEvent" type="struct" required="yes"><cfset data= > CFEvent.data> > <!--- log this action ---> > <cflog file="TemplateCacheEvents" application="No" text="ACTION: > #data.type#; FILE: #data.filename#; TIME: #timeFormat(data.lastmodified > )#"> > > <cfmail to="[EMAIL PROTECTED]" > [EMAIL PROTECTED]"New Log File Created!"> > Msg: Log file attached. > Filename: #data.filename# > <cfmailparam file="#data.filename#" type="text/plain"> > <cfdump var="#data.filename#"> > <cfmailparam file="#data.filename#"> > </cfmail> > > </cffunction> > > The above codes is working if I take the cfmailparam out . But I need to > send the new file attached in the email. > > This function is generating the following error (exception.log). > > Error invoking CFC for gateway SendLogsEvent: String index out of range: > -1" > java.lang.StringIndexOutOfBoundsException: String index out of range: -1 > > Please help. > > -- > ....................................... > Regards, > > > > On 4/27/07, Asim Manzur wrote: > > > > is there any sample code available for directorywatcher application > > anywhere ? > > > > Thanks > > > > -- > > ...................................... > > Regards, > > > > > > >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276582 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

