tracker issue : CF-4202042

select a category, or use search below
(searches all categories and all time range)

Cfmail just started removing spaces and any non html formated emails aren't sending

| View in Tracker

Status/Resolution/Reason: To Track//PRNeedInfo

Reporter/Name(from Bugbase): Heather Holman / ()

Created: 04/19/2018

Components: Net Protocols, MAIL

Versions: 11.0

Failure Type: Others

Found In Build/Fixed In Build: cf11 /

Priority/Frequency: Normal / Some users will encounter

Locale/System: / Windows 10

Vote Count: 1

Problem Description:A few days ago all of our non html emails stopped sending, also around that same time the spaces around variables started being removed

Steps to Reproduce: <cfset FN = "John"> <cfset LN = "Smith"> <cfset email= ""> <cfmail to="" from="" subject="whatever"> #FN# #LN# #email# </cfmail> 

Actual Result: The email doesn't send at all. Add type="html" and the resulting email reads: which in turn causes incorrect email links in the msg. 

Expected Result:The email should read: John Smith

Any Workarounds: add type="html" which then removes all spaces around variables, so you have to add &nbsp;.



&nsbp; actually isn't working.
Comment by Heather H.
27430 | April 20, 2018 05:24:28 PM GMT
Also there was a security patch 10 days ago, which could have caused this. It used to work fine.
Comment by Heather H.
27431 | April 20, 2018 05:36:20 PM GMT
FYI I did a mass replace of all the spaces and it removed the spaces between the variables. I believe these emails were created in word and the client bolded everywhere that was to be a variable. I was able to find all these and now it seems to be working via HTML with no space issue. Plain text emails are still not sending however.
Comment by Heather H.
27432 | April 20, 2018 06:03:48 PM GMT
Holman, The fix for removing white spaces is addressed in CF 2016 and later versions. This bug can't be addressed in CF 11 because of risks associated with it. What is your plan around moving to CF 2016 or CF 2018?
Comment by HariKrishna K.
30087 | January 03, 2019 05:32:24 AM GMT