mailbody to be html file
Hi Guys,
I am having a html file which i need to send as a mail body but this sends the file in text format. I am using the mail and mutt command but both are not working. cat <<mail.html>> | mail -s "hi" <<mailid>> cat <<mail.html>> | mutt -s "hi> <<mailid>> |
Include the -a option to have mutt MIME-encode the file as an attachment.
mutt -s "Hi" -a mail.html emailaddr You don't need to use cat here - most programs can read from STDIN or accept a file argument. |
All times are GMT -5. The time now is 01:38 AM. |