From Wiki-UX.info

How to send an attachment from the command line
Jump to: navigation, search

How to send an attachment from the command line

# 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

This page was last modified on 26 March 2011, at 07:18. This page has been accessed 1,257 times.