I just played with it a bit.  The problem is, you need to know what the
exact name for the mail server is; i.e., you can't just peek at port 25 on
www.mydomain.com, whose mail server might be mail.mydomain.com, and expect a
positive response.  Sure, you could guess the name of the mail server
address for a given domain easily enough by trying mail.mydomain.com,
pop.mydaomian.com, etc., but if the mail server admin has used a
"nonstandard" (and probably more secure) name for his mail server, you will
not be able to successfully verify the connection.

If you know the mail server address, though, it should work fine.

Pete


----- Original Message -----
From: "Dan O'Keefe" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, July 30, 2002 9:58 AM
Subject: CFusion_VerifyMail()


> I saw this function in an earlier thread, and found this info on
> FusionCube's site. Has anyone ever used this?
>
> -----------------------------------
> Verifying SMTP Server Accessibility
> Want to check that an SMTP server is accessible before using it to send
> mail? Use the undocumented CFusion_VerifyMail() function which takes three
> parameters - the server to be checked (IP address or DNS name), the port,
> and a timeout interval. CFusion_VerifyMail() returns a string that may be
> inspected - if it is empty then the verification was successful, otherwise
> it will contain an error message.
>
> Dan
>
> -----------------------------------------
> Dan O'Keefe
> TriPoint Technologies
> 954.501.3115
>
>
> 
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to