Sending html email with html attachment

view full story

http://www.unix.com – Hello, I have a script which is sending an html file as an attachment. #!/usr/bin/ksh export MAILTO="[email protected]" export CONTENT="/usr/tmp/file.html" export SUBJECT="EmailSubject" ( echo "Subject: $SUBJECT" echo "MIME-Version: 1.0" echo "Content-Type: text/html" echo "Content-Disposition: inline" cat $CONTENT ) | /usr/sbin/sendmail $MAILTO I have another script which will send the content of this html file as body of the email. unset LC_CTYPE uuencode /usr/tmp/file.html file.html | mailx -m -s "EmailSub (HowTos)