I should add that I'm using cfx_imsmail version 3.3.2. The coolfusion.com website is really messed up at the moment, and link to files on the download page link to the same smtp installer file. Does anyone know where I can get the newest version of cfx_imsmail? Or an answer to the OP would be great too.
> I am currently trying to use the <cfx_imsmail> tag (custom tag > available using inFusion Mail Server) and I have a question which I > hope can be easily answered. > > I want to use the cfx_imsmail tag to replace a cfmail tag that uses a > query attribute. I am using the query and queryfield attributes to > automatically loop the same query. My problem is that while inside an > attribute of the cfx_imsmail tag, my <cfset> tags seem to be ignored. > I want to put in place some link tracking logic and also a <cfinclude> > tag that calls a dynamic template name. I have tried to set up this > data in a token_emailbody attribute, directly in the body attribute, > and also directly in the html attribute, but nothing seems to work for > me. > > a dumbed-down code snippet is attached below: > > <cfx_imsmail > header_to="#myquery.to_email#" > header_from="#myquery.from_email#" > smtpfrom="#myquery.from_email#" > header_subject="#myquery.subject#" > failto="graph...@gammasports.com" > parsetokens="yes" > renderplaintext="no" > log="yes" > priority="0" > query="myquery" > queryfield="to_email" > html=" > <cfsilent> > <!--- tracking logic here ---> > <cfset ...> > </cfsilent> > <!--- dynamic include here ---> > <cfinclude template='...'> > <cfsilent> > <!--- extra cfinvoke where I am erroring ---> > <cfset var.myvariable = 'blah blah' ) > > <cfinvoke component='my_component' method='do_this' > > <cfinvokeargument name='this_argument' > value='#var. myvariable#' > /> > </cfinvoke> > </cfsilent> > "> > > Please note that the data contained in the html attribute of the > cfx_imsmail tag in the above code example was taken directly from > between the opening and closing <cfmail> tags that I'm trying to > replace. The cfmail tag works without any problems at all times. > > I keep getting an error on line 57 stating that a variable is > undefined, even though I have the variable being defined on line 54. > This leads me to believe that the <cfset> I am using is not being > executed. Is there anything I can do to get my <cfset> to behave > properly while inside of the cfx_imsmail tag? > > I have had success looping the cfx_imsmail tag for my query, replacing > query and queryfield attributes with the smtpto attribute, and using a > cfsavecontent tag before the cfx_imsmail tag to build the content for > the html attribute. I do not want to do it this way, as this is far > less efficient than using the query and queryfield attributes. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322417 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4