How to send an attachment from the command line

From Wiki-UX.info
Jump to: navigation, search
# uuencode /etc/hosts hosttable | mailx -m -s "subject" name@domain.foo
# uuencode /etc/hosts hosts.txt | sendmail name@domain.foo
# mailx -s "Prueba" name@domain.foo < /etc/hosts
# cat /etc/hosts | mailx -s Prueba name@domain.foo

Authors