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 email@example.com set envelope_from=yes $ vim ~/.msmtprc # add the following account default host smtp.163.com from firstname.lastname@example.org 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!" email@example.com
Or, send mail with an attchment to
firstname.lastname@example.org and cc to
$ echo "Attach Mail" | mutt -s "Mail Title! Attached!" -a path-to-file -- email@example.com -c firstname.lastname@example.org
Life become better now!