Hey Chris,

Its the funky quotes. The ones around smtpfrom are fine, the one around header_from 
aren't.

        SMTPFROM="#SMTP_From#"
        HEADER_FROM="#Header_From#"



------------------------------------------------------ 
Marc Lichtenfeld 
Senior Programmer/Technology Lead 
www.bigdough.com 

 


-----Original Message-----
From: Chris Rockett [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 21, 2003 10:51 AM
To: inFusion Support List
Subject: [iMS] CFX question


Can anyone shed some light on why this code produces the following error?  The line in 
question 
is the Header_From attribute of the CFX_iMSMail tag.  It seems it won't allow me to 
use a variable 
as a value, it does however work if I hard code the Header_From to the same value I 
use in the 
variable.  Is this a CF thing or a CFX_iMSMail thing?

<CFSET DSN="EDlinc">
<CFSET DSN_Table="Test_Broadcast">
<CFSET DSN_Field="Email">

<CFSET SMTP_From = "[EMAIL PROTECTED]">
<CFSET Header_From = """EdLiNC E-rate Survey"" <[EMAIL PROTECTED]>">
<CFSET Header_Subject = "Your Help on E-rate Needed!">
<CFSET Message_Body = "Dear Colleague,">

<CFQUERY NAME="GetInfo" DATASOURCE="#DSN#" MAXROWS="1000">
        SELECT DISTINCT *
        FROM #DSN_Table#
        WHERE Sent = 0
</CFQUERY>

<CFX_iMSMail
        SMTPFROM="#SMTP_From#"
        HEADER_FROM="#Header_From#"
        HEADER_SUBJECT="#Header_Subject#"
        BODY="#Message_Body#"
        QUERY="GetInfo"
        QUERYFIELD="#DSN_Field#"
        QUOTEDPRINTABLE="No">           

--------------------------------------------------------------------------------
Error Occurred While Processing Request
Error Diagnostic Information
Just in time compilation error

Invalid token found on line 18 at position 15. ColdFusion was looking at the following 
text:

#
Invalid expression element. The usual cause of this error is a misspelling in the 
expression text.
The last successfully parsed CFML construct was a CFX_IMSMAIL tag occupying document 
position (16:1) to (16:12).
--------------------------------------------------------------------------------

Thanks
-Chris

==^=======================================================
     This list server is Powered by iMS
   "The Swiss Army Knife of Mail Servers"
   --------------------------------------
To leave this list please complete the form at 
http://www.coolfusion.com/iMSSupport.cfm
Need an iMS Developer license?  Sign up for a free license here:
http://www.coolfusion.com/iMSDevelopers.cfm
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
Note: You are subscribed as [email protected]
==^=======================================================


Reply via email to