I have some thing stored on my office computer,
but it is not simple to access from outside.
The only way is using jump machine by
If I want to get some files out,
I must send it to jump machine and then fetch it.
If the file is large, I can bear the inconvenience. But if files are small and must be send a lot of times, it really made me mad!
So, using a email client for sending small files as attachment is a good idea!
After searching, I found
mutt is very good!
$ sudo apt install mutt msmtp
$ sudo vim /etc/Muttrc # add the following at the end of file set sendmail="/usr/bin/msmtp" set use_from=yes set realname="My Name" set firstname.lastname@example.org set envelope_from=yes $ vim ~/.msmtprc # add the following account default host smtp.163.com from email@example.com auth plain user xxx password 123456 logfile ~/.msmtp.log $ chmod 600 ./msmtprc $ touch .msmtp.log
Then, send simple mail to
$ echo "Mail Content!" | mutt -s "Mail Title!" firstname.lastname@example.org
Or, send mail with an attchment to
email@example.com and cc to
$ echo "Attach Mail" | mutt -s "Mail Title! Attached!" -a path-to-file -- firstname.lastname@example.org -c email@example.com
Life become better now!