How attach a file using /usr/lib/sendmail
Hello Guys,
I am trying to attach a file while sending an email from the server (Solaris OS). Getting the error "uuencode: not found" Could you advise on this? Using the command below in my script: { echo "SUBJECT:File Count" echo "FROM:server name" echo "TO:emailadd@test.com" echo "Find attached file count" uuencode /home/user/count_file.csv count_file.csv } | /usr/lib/sendmail -t thanks. |
Quote:
thanks. |
Which version of Solaris you're using? You might not using full path of the command (it should be in /usr/bin/uuencode)? Can you check:
Code:
~$ which uuencode Code:
/path/to/uuencode /path/to/foo.txt<space>foo.txt | mailx -s "<subject>" abc@xyz.com |
"uuencode" is not installed in the server.
Tried after installing it..it is working fine now. thanks. |
All times are GMT -5. The time now is 11:47 AM. |