Hello all
Im using a cfc for the first time... And guess what - its not working :)
So this is a v simple mail cfc, designed so that I can change how the mail
is sent later down the line and not have to change lots of cfmail tags...
Im calling it as follows:
<cfinvoke method="sendMail" component="path.to.sendmail">
<cfinvokeargument name="to" value="[EMAIL PROTECTED]">
<cfinvokeargument name="from" value="[EMAIL PROTECTED]">
<cfinvokeargument name="subject" value="Subject">
<cfinvokeargument name="body" value="body text here">
</cfinvoke>
But get the following error:
Unable to complete CFML to Java translation.
Error information unsupported statement: class
coldfusion.compiler.ASTfunctionDefinition
And it highlights the line
<cfinvokeargument name="body" value="body text here">
The cfc itself starts like this:
<cfcomponent hint="send mail container" displayname="sendmail">
<cffunction name="sendMail" access="public">
<!--- defined required arguments --->
<cfargument name="from" type="string" required="false">
<cfargument name="to" type="string" required="true">
<cfargument name="subject" type="string" required="true">
<cfargument name="body" type="string" required="true">
<!--- process stuff here --->
And so on...
Anyone know the problem??
Ryan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community.
http://www.fusionauthority.com/ads.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4