2013年6月6日 星期四

Use command to send mail with Gmail

// install pkg
# sudo apt-get install mutt

// setup configure
# sudo gvim /etc/Muttrc


set from = "yourmailaccount@gmail.com"
set realname = "yourname"
set imap_user = "yourmailaccount@gmail.com"
set imap_pass = "yourmailpassword"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set postponed ="+[Gmail]/Drafts"
set header_cache =~/.mutt/cache/headers
set message_cachedir =~/.mutt/cache/bodies
set certificate_file =~/.mutt/certificates
set smtp_url = "smtp://yourmailaccount@smtp.gmail.com:587/"
set smtp_pass = "yourmailpassword"
set move = no
set imap_keepalive = 900

//create cache folder
mkdir -r .mutt/
mkdir -r .mutt/cache/


沒有留言:

張貼留言