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. (Applies to: ColdFusion 4.x and 5)

One thought

Leave a Reply