Apologies if this is a total noob question but where is the mail sent log in the admin? I can find the mail error log but I can’t find a list of confirmed emails that Lucee has sent.
I frequently have to confirm to users that a mail has actually been sent and when it was sent.
In the web admin for the site you want to log the email sent for, in the “Logging” section, change the log level to “INFO”. Lucee will then log sent messages in the same file as it logs errors:
Roberto, one of the nice features offered in the Lucee admin is a link offered at the bottom of many pages, offering to show you the application-level settings to achieve the same result.
I’m writing from a phone so can’t confirm if that page does (and on whatever version you’re using), but can you check and let us know?
If not, a different code-based approach is to use Lucee’s cfadmin tag–which instead of configuring something for “an app” does it for the instance, as does the admin itself, like the admin api in ACF. Of course, you’d also need the authority to change the Lucee admin. It’s not clear if that’s you’re situation.
Yep, though you’d said you were using Lucee 5. To be clear, the builtin cfconfig format file-based configuration support was added in Lucee 6. For those interested in more, see:
That said, even those running Lucee 5 (or ACF) can instead leverage cfconfig-based configuration using the OG :-), Commandbox and its cfconfig module (on which the schema for this new builtin Lucee cfconfig support is based).
And as many familiar with Commandbox cfconfig will already know, you do NOT need to be running your Lucee or ACF instance WITHIN Commandbox: that tool can be pointed to the folder for Lucee or ACF, and it can be used to get, set, export, import, and diff among and between any such instances. Or it can be easily pointed at instances running as Commandbox servers, of course.
More in the ample ortus docs on cfconfig and other resources, including even a preso I did, covering that and other tools for the task–for ACF or Lucee. (I’d given it first in 2020, then updated it in 2022 to include the cfsetup tool added by Adobe in cf2021. Perhaps someday ACF may also adopt the cfconfig file format as Lucee 6 did.)
If not, besides the other info above, note also that Lucee has a “mail listeners” feature, where you could easily configure (in a few lines of code, in application.cfc) to have an email logged whenever an email is sent. More here.
Again, though, since you’re on Lucee 5, note that this feature was made experimental in Lucee 5.3 and final in Lucee 6.