how to send gmail from ubuntu terminal

  1. Telnet won’t work because gmail requires SSL now.
  2. Prepare your user/password in base64 encoding.
  3. openssl s_client -CApath /etc/ssl/certs/ -connect smtp.gmail.com:465 -crlf (-crlf is important)
  4. SMTP session:helo
    auth login
    UserInBase64
    PasswordInBase64
    mail from: <sender>
    rcpt to: <to>
    data
    .
    quit
Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s