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

One response to “Verifying SMTP Server Accessibility”

  1. Robert W. Mack Avatar
    Robert W. Mack

    Is there a simple way under MX to duplicate the function of CFusion_VerifyMail()?

Leave a Reply