my typo error on posting.
the codes are:
<cffunction access="public" name="onAdd" output="no">
<cfargument name="CFEvent" type="struct" required="yes">
<cfset data=CFEvent.data>
<cfmail to="[EMAIL PROTECTED]" from="[EMAIL PROTECTED]" subject="New
Log File Created!">
Msg: Log file attached.
Filename: #data.filename#
<cfmailparam file="#data.filename#" type="text/plain">
</cfmail>
</cffunction>
The event is executing as soon as the new file created.
If I take the <cfmailparam file="#data.filename#" type="text/plain"> line
out everything works fine.
With this line in the code its generating the error in exception.log.
Error invoking CFC for gateway SendLogsEvent: String index out of range: -1"
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
Pelase advise.
--
.......................................
Regards,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7.
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276598
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4