LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mailbody to be html file (https://www.linuxquestions.org/questions/linux-newbie-8/mailbody-to-be-html-file-665483/)

Swapna173 08-26-2008 06:46 AM

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>>

Mr. C. 08-27-2008 12:13 AM

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.