I've specified a Mail Server in my CFAdmin I want to get it in my code. Is it possible somehow?
Getting CFAdmin Mail Server in code
296 views Asked by Adil Malik At
2
There are 2 answers
3
On
Unlike datasources, mail servers are used automatically - you don't need to specify them.
However, you can also supply the assorted properties for a mail server directly as attributes on a cfmail tag, which then overrides those in the administrator for that instance only.
(If this isn't what you're asking, you need to edit your question to clarify and add more information.)
I have to concede I've never had to specifically do what you need to do, but CF has an Admin API. Details are on the Administrator API page in the docs.
Relevant extract:
I reckon that's what yer after.