I have been doing socket programming through PHP to validate emails.Following are the command I am using:
**cmd:openssl s_client -starttls smtp -connect smtp.