SEND SMTP EMAIL VIA TELNET ( Send Email From Shell Using Gmail )

Open Terminal and Type

perl -MMIME::Base64 -e 'print encode_base64("\000username\\000password")' ## Replace username & password 

Copy the output of the command.(something like AG5pY2UudHJ5QGdtYWlsLmNvbQBub2l0c25vdG15cGFzc3dvcmQ )

Again Type,

openssl s_client -connect -crlf -ign_eof

This will telnet client with ssl enabled


    EHLO localhost
    AUTH PLAIN <your copied text>
    MAIL FROM: <>
    RCPT TO: <>
    Subject: <your subject>
    <Type Email Body>

This is how you can send a quick email using your gmail account.