Hi All,
I need a syntax for mailing in unix by using html code file output as body and along with attachment (without using mutt command)
HTML code file : html1.txt
Attachment : attach1.txt
I was using the below codes but they are not working.
( cat html1.txt ; uuencode attach1.txt attach1.txt )| mail -s "My Subject echo -e "Content-type:text/html"" abc@def.com
-- Here attachment also coming as special characters in body without any attachment file
( cat html1.txt ; uuencode attach1.txt attach1.txt )| mail -s "My Subject" abc@def.com
-- Here in body html code is displayed but i need html output
uuencode attach1.txt attach1.txt | mail -s "My Subject" abc@def.com < html1.txt
Please suggest.