Without looking too much at the code, try adding output="no" to the
cffunction tag. Does that impove it any?

Ade

-----Original Message-----
From: Derek Stottlemyer [mailto:[EMAIL PROTECTED]
Sent: 23 March 2005 03:47
To: CF-Newbie
Subject: cf 7 query / email problem


Sure, sorry about that. Two examples are below.

It seems that calling a function adds any whitespace in the function. This
just started three days ago, I presume when my server was updated to cf 7.0.

Do you know a way to turn off this "feature'? (Oh, and adding a <cfreturn>
to the functions doesn't make a difference.)

Thanks,
Derek

Example 1:<!---sends an email with 3 blank lines then a 1.--->
##code
<cffunction name="getProductURL">
        <cfset urls ="">
        <cfset rootURL = "http://www.guitar-learning.com";>
</cffunction>
        <cfmail to = "[to email]
          from = "[from email]"
          subject = "Test"
                  server = "[sorry]"
                  username="[sorry]"
                  password="[sorry]"
                  >#getProductURL()#1
      </cfmail>
##/code

Example 2:      <!---sends an email with 2 and no extra lines.
                notice the lack of whitespace in the function   --->
##code
<cffunction name="getProductURL"><cfset urls =""><cfset rootURL =
"http://www.guitar-learning.com";></cffunction>
        <cfmail to = "[to email]
          from = "[from email]"
          subject = "Test"
                  server = "[sorry]"
                  username="[sorry]"
                  password="[sorry]"
                  >#getProductURL()#2
      </cfmail>
##/code
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.0 - Release Date: 21/03/2005


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
 Save $10 Download ZoneAlarm Security Suite 
http://www.houseoffusion.com/banners/view.cfm?bannerid=66

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:768
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to