Posts

Showing posts from July, 2019

How to access Gmail from Ubuntu Terminal

Problem I need to send email with attachment from Ubuntu terminal. I've tried ssmtp with uuencode however it didn't work very well as attachment with noname appeared before the actual attachment. I've just tried another email client called mutt and it has been working very well so far. The following solution is to remind me and you of the steps of installing, configuring, and testing mutt . Solution 1. Download and install mutt sudo apt-get install mutt 2. When prompted, select internet site and type in the mail name: gmail.com 3. Creating folders and files mkdir -p ~/.mutt/cache/headers mkdir ~/.mutt/cache/bodies touch ~/.mutt/certificates touch ~/.mutt/muttrc 4. Use nano to edit mutt configuration file: nano ~/.mutt/muttrc and type in (or copy and paste) the followings: set from = "YourGmailAddress@gmail.com" set realname = "YourGmailAddress" set imap_user = "YourGmailAddress@gmail.com" set imap_pass = "