I'm trying to set up a way to verify a mail server with CFMX for use on
my server monitor. I used to use cfusion_verifymail(), but can't with
MX. I found the code below, but I can't get it to return anything
(determined via a cfdump) no matter how much I tinker with it.
I must be doing something stupid here. I've never worked with
functions. Can anyone show me how to make this do the job?
--------------------------------------------
Matt Robertson [EMAIL PROTECTED]
MSB Designs, Inc. http://mysecretbase.com
--------------------------------------------
<cfobject
action=""
type="JAVA"
class="coldfusion.server.ServiceFactory"
name="factory">
<cfscript>
server="mail.pacbell.net"; // a known good mail server to test
port="25";
timeout="10";
function verifymail(server,port,timeout)
{
ms=factory.getMailSpoolService();
ms.setServer(server);
ms.setPort(val(port));
ms.setTimeout(val(timeout));
isServer=ms.verifyServer();
return "blah";
if (ms.verifyServer()) return "Positive";
else return "Negative";
}
</cfscript>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- OT: Coldfusion 5 Pro for sale Benjamin Rosenthal
- Re: Coldfusion 5 Pro for sale Matt Robertson
- Re: Coldfusion 5 Pro for sale Jim McAtee