Hi
I am new to unix and scripting.I am trying to send a html file as an attachment.
SUBJECT="Type of Exceptions in Application" TO=Sushovan.Samals@gmail.com
SPOOLFILE=/data/reg/tlogs/Monitor.html #echo "Send the E-mail message..."
uuencode $SPOOLFILE $SPOOLFILE | mailx -s "$SUBJECT" $TO
But the message i am getting contains text which are garbled.I donot have the permission to use sendmail option(i think so as it is command not found for the path).
So how to send a mail containing html attachment.Please suggest.Thanks in advance.
Try to tar or compress the file and check if the output is still garbled. Or you might try to send a simple file which contains just some simple characters like "hello here i am".
With what tool did you check the attachment?
If you receive the mail on unix, you might use a tool like munpack or mail client that is able to separate the attachment from the mail text.