While testing a new setup including mail server details in application.cfc, I ran into this bug [LDEV-3088] Admin registered mail server incorrectly overrides application defined mail server - Lucee which basically means any mail server setup in the lucee server overrides the web instance.
So having read through the docs I thought a way around this would be to simply specify the server (smtp host) inside the cfmail tag, as is possible in coldfusion. But apparently that doesn’t work, as lucee works slightly different and won’t match that host with any that are setup: Defining and Using Multiple SMTP Servers - #2 by Terry_Whitney
Is there any other way to specify which mail server lucee should use, without having to include username/password in each cfmail tag? Seeing as you can setup multiple mail servers also inside a web admin, how do you then use this functionality if it’s not by host?
Is my only other option (till bug mentioned at top gets fixed) to delete the mail server in the lucee server instance, essentially removing a ‘backup’ mail server for all web instances? It would be super useful to specify a different mail server for transactional emails vs marketing emails fex.
I’m on 22.214.171.124.