I have currently have ColdFusion 9.0 running on a Windows Server 2008 R2 Datacenter. I recently installed the security update APSB12-06 and followed all of the directions to a T. All of my applications work fine and nothing seems out of the oridinary.
Recently, we've been having some customers complain that they are unable to follow links that are sent to them via emails that are auto-generated from our system. I couldn't figure out why this was happening, since I couldn't recreate the error on any test or system I tried. I recently got in touch with a customer to send me some details about their problem. Turns out the email that was sent from our system was changing the URL in the email to do the following:
What the URL should look like:
What the customer was receiving:
As you can see, it was replacing the ampersands with the HTML equivalent. This has never happened before I installed the security patch, and nothing in our system has changed. I've tried fooling around with URLEncodedFormat and URLDecode, but, as you can see, the URL is already properly URL-encoded (no spaces or strange characters).
This isn't happening for ALL customers in all emails on all system. Only some. So I'm lead to believe that maybe it's a matter of the user's email client. It's just curious this has never happened before in the previous six years of this system being used.
I was wondering if anyone had any insight to this problem. Any information would be greatly appreciated.
Edit: Apparently the "insert raw HTML" function in the text editor on this forum doesn't actually do raw HTML...The second URL in the example above should have "& amp ;" replacing all the ampersands. Hope that makes sense?
Are you sending the content as html or text?
I tend to shy away from html email for this very reason. Email clients can sometimes do unreliable things. Ahh pine mail.
Did you try explicitly setting the charset value?
We saw weird behavior with cfmailpart after upgrading to 9.01.
I am sending the emails as HTML...Somewhat have to because of the graphic elements of the emails (they are artwork proof emails).
I have the default charset in the ColdFusion Administrator under the "mail" section set to "UTF-8." I have not explicitly tried setting this variable in the cfmail tag though...Perhaps I'll try that.