<cfset msgBody = "Here's the start.#chr(13)##chr(10)#">
<cfset msgBody = msgBody & "A little more here.#chr(13)##chr(10)#"> <cfloop 
list="#form.fieldnames#" index="x">
     <cfif not listfindnocase(listexclude,x)>
         <cfset msgBody = msgBody & replace(x,"_"," ","all") & ": ">
         <cfif form[x] neq "">
             <cfset msgBody = msgBody & form[x]>
         <cfelse>
             <cfset msgBody = msgBody & "(not required and empty)">
         </cfif>
         <cfset msgBody = msgBody & "#chr(13)##chr(10)#">
      </cfif>
</cfloop>

I doubt this would matter much, but is a bit more readable IMHO.

<cfset msgBody = "Here's the start." & chr(13) & chr(10)>
<cfset msgBody = msgBody & "A little more here." & chr(13) & chr(10)>
 <cfloop list="#form.fieldnames#" index="x">
     <cfif not listfindnocase(listexclude,x)>
         <cfset msgBody = msgBody & replace(x,"_"," ","all") & ": ">
         <cfif form[x] neq "">
             <cfset msgBody = msgBody & form[x]>
         <cfelse>
             <cfset msgBody = msgBody & "(not required and empty)">
         </cfif>
         <cfset msgBody = msgBody & chr(13) & chr(10)>
      </cfif>
</cfloop>

I can see any reason that would cause the LF&CR to occur.  Are you absolutely 
sure that the last cfset runs every time it is supposed to?

--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

---------
| 1 |   |
---------  Binary Soduko
|   |   |
---------
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234662
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to