AFAIK, there is not a way to do what you ask, and you should be glad for it.
To be able to read CFML code from a .cfm/.cfml/.cfc document would be a huge security risk, even if Adobe made it so that only a browser on the CF Server could do it. Logins and passwords could be compromised, as well as DSNs, DNSs, and internal IP addresses - a veritable candy store for hackers, script-kiddies, and other malicious actors.
The encryption is in place for two security-based reasons: 1) reduces the chance of malicious actors taking advantage of unencrypted code, and 2) prevents users/admins from altering non-open-source code.
You don't need to look at the CF admin code to check if your mail settings are correct. The simple thing you can do is write a task to send you an email. If you get the email everything is working. If you don't, well, it didn't work.
I appreciate the info that we should not be able to see the code. Never thought of that.
I am already checking the undeliverable mail to see if anything there. If so, I get a text message. Lets me know a problem. Problem isn't always not connecting to server, though. Also, I'm getting the notice after finding out that a problem was created.
I was trying to cut down on constantly getting email/text messages that all is ok. Thought it would be good to be able to simply get a message that the routine showed that it (CF) could not connect to server. The same way you can verify or not be able to verify that CF is able to connect with mail server by using the "verify connection" in mail in CF administrator.
I was just hoping to see what code they use to do that and use similar in a scheduled task. Be nice to get a message that CF NOT connecting, rather than wait for not getting a message (which then shows something wrong).
Hmm.. did a quick Google search, and found the following: