Solaris : Send mail with attachment
Use following command to send email with attachment in Solaris from command line
uuencode logfile.zip logfile.zip | mailx -s "Mail subject" myid@company.com
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.
uuencode logfile.zip logfile.zip | mailx -s "Mail subject" myid@company.com
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.
Comments
Post a Comment