Code:
# ./a.out smtp.gmail.com 25
220 mx.google.com ESMTP 22sm280809ywh.30
250 mx.google.com at your service
220 2.0.0 Ready to start TLS
Please enter the message: after client new
after handshake
Common Name: smtp.gmail.com
after get cert dn
-----BEGIN SSL SESSION PARAMETERS-----
b2691f97b70da87c7a7ad63c9add3179267fbbb771bcb3d7447c8b0e7db7f2b8
-----END SSL SESSION PARAMETERS-----
CIPHER is RC4-MD5
in for loop
EHLO
250-mx.google.com at your service, [61.11.23.15]
250-SIZE 35651584
250-8BITMIME
250-AUTH LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250 PIPELINING
MAIL FROM:<miibm2000@yahoo.co.in>
502 5.5.1 Unrecognized command. 22sm280809ywh.30