ColdFusion (CFMAIL) won't send embedded image over SSL
Posted on 2010-09-03
I have a web server running ColdFusion MX7. One of the main functions of this server is an in-house mail list system. It has a database of contacts and I use CF code to generate emails to clients, etc. The box has a Verisign SSL certificate on it (has for over 3 years) because we use it for other stuff also. I have been using my code with no problems for over 4 years - CFMAIL using CFMAILPARAM to embed images and attach files.
Until my coworker updated the Verisign SSL certificate on the box a few days ago. It now has an Extended Validation certificate on it. And ever since that happend, my CFMAIL code will not embed any images or attach any files to the emails - the emails will not be sent at all. I am using the exact same code I used before -- the only thing that changed on the box was the update of the security certificate.
The CF mail log give me this error:
IOException while sending message; nested exception is: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
I tested sending mail by stripping out all the images and those come through just fine. It is only when I try to embed an image or add an attachment that it doesn't work. Everything runs off the same server - the images and attachments are in the same folder as the CF page that calls them.
I'm getting desparate here. There was a mailing that was supposed to go out yesterday and it didn't and I have to get this working. I'm not well versed on SSL (I don't buy them or install them or anything else). I spent several hours yesterday trying to figure it out and I am so lost. What can I do to get my CFMAIL working again? If anyone can please help me I would so greatly appreaciate it. Thank you so much for at least reading about my problem!