Quantcast
Viewing latest article 6
Browse Latest Browse All 18

Answer by Sharad for How to send mail from the command line?

You can try this:

mail name@mailserver.com -s "Attached file" <<EOF                 
Hi

~| uuencode $HOME/filename.txt filename.txt

EOF

It works with GNU Mailutils, check the website for more information.


Viewing latest article 6
Browse Latest Browse All 18

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>