Showing posts from December, 2013

Solaris : Send mail with attachment

Use following command to send email with attachment in Solaris from command line

uuencode | mailx -s "Mail subject"

uuencode - Encodes file into Base64 so that it can be send as attachment with a mail.

mailx - Email client available in Solaris. Use -s option to specify mail subject.

This is useful for sending log files from server as attachment. This works for me in Solaris 10. It should be same for other versions also.