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,
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2.
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276556
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4