Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Erik Aulbach / Erik Aulbach (Erik Aulbach)
Created: 09/06/2016
Components: Net Protocols, MAIL
Versions: 2016
Failure Type: Incorrect w/Workaround
Found In Build/Fixed In Build: CF2016_Update1 / 2018.0.0.306721
Priority/Frequency: Normal / All users will encounter
Locale/System: English / Windows 10 64 bit
Vote Count: 9
Problem Description: If there is only whitespace in between coldfusion variables used in the body of a CFMAIL msg, the whitespace is being removed in the email msg and the values are run together. This only happens in CF2016 (works fine in CF10) and while not a big issue it does cause some data corruption - like incorrect email links
Steps to Reproduce:
<cfset FN = "John">
<cfset LN = "Smith">
<cfset email= "JSmith@abc.com">
<cfmail to="abc@123.com" from="xyz@321.com" subject="whatever">
#FN# #LN# #email#
</cfmail>
Actual Result:
The resulting email reads: JohnSmithJSmith@abc.com which in turn causes incorrect email links in the msg.
Expected Result:
The email should read: John Smith JSmith@abc.com
Any Workarounds: Use any workaround that puts some non-whitespace character in between the vars (like a hyphen) or forces a blankspace (like "nbsp" or #chr(160)#) or set the data into a single variable before using, etc. IMO - this is not something users should be expected to do
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4187127
External Customer Info:
External Company:
External Customer Name: Erik Aulbach
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: