Anyone seen this? ACF2023 (standard) all of a sud...
# cfml-general
s
Anyone seen this? ACF2023 (standard) all of a sudden has stopped sending email with this error in the exception log:
Copy code
Can't find resource for base name coldfusion/tagext/mail/resource.properties
I've restarted the service (not the server) and mail is still queuing up not sending.
g
Did you applied a new hot fix
j
This likely implies a missing or corrupted
resource.properties
file. Like gsr asks, did you recently do a CF update? Perhaps something happened to the file. Steps to Fix: 1. Locate the file: ◦ Navigate to
{ColdFusion Install Directory}/cfusion/wwwroot/WEB-INF/cftags/Mail/
◦ Check if
resource.properties
exists. 2. If missing, try copying it from another working ColdFusion installation. 3. If corrupted, try restoring it from a backup or reinstalling ColdFusion.
c
Can also try uninstalling and reinstalling the mail package, that has worked for other packages that stopped working after an update.
s
I never found the cause, but here's what I did find. We have ACF2023 (Standard). For whatever reason, at some point, we were able to add and save a backup SMTP server in CF Admin (I believe this should not be allowed for standard). Starting on 2/13, random emails in the queue would get two servers specified (note both the primary defined, application defined, and backup defined server were all the same config / server / credentials).
Copy code
server:  <http://smtp.sendgrid.net:587|smtp.sendgrid.net:587>
server-username:  zzzzzzzzzz
server-password:  xxxxxxxxxx
server:  <http://smtp.sendgrid.net:587|smtp.sendgrid.net:587>
server-username:  zzzzzzzzzz
server-password:  xxxxxxxxxx
If any emails in the queue had this double server config, the queue would not process. I found this but putting 10 messages in the queue, one with the double server config, and none would process. Edit the message to remove the 2nd SMTP server and the queue processed fine. Now why random messages got the extra SMTP server config is still a mystery. I don't know if maybe when the mail is queued CF checks if the server is reachable, and if not writes in the backup SMTP server info in case it's still not reachable when the queue is processed?
@gsr - last HF was applied probably 2-3 weeks ago. @jeffcoughlin - there is no /Mail/ in that cftags folder. I also checked other ACF2021 and 2023 servers and none have a /Mail in /cftags.
g
I suggest rollback the hotfox and see if that makes the mail work or not