How can I send an e-mail out of a ksh script with file attachment or with file contents (in html format) as a body of the e-mail?
I tried using
uuencode filename.html | mail -s 'Subject' email@example.com
But I get an error that it does not recognize uuencode or mail commands
This below didn't work either:
mail -s "Subject" firstname.lastname@example.org < filename.html
The error I get is
"SP2-0734: unknown command beginning "mail -s "T...""