How to validate SMTP server
I am working on a project where I have to validate the given SMTP server i.e in a textbox user will provide the detail and then he will click on a test button. I want to check whether the server entered by the user is an Smtp Server or not? Any Idea?? Attempt to connect to the SMTP port, and ensure you get a line back from it that starts with "220 " and contains the letters "SMTP". A typical example response would be: 220 prod.monadic.cynic.net ESMTP Postfix (2.5.5) Then be polite and send " QUIT \r\n" to hang up. You can do some further testing, if you like, such as testing that the user can