1

Sending a HTML email from cli loses formatting.

view story
linux-howto

http://www.unix.com – Hi, I have a .sh file, to email a report of our backups from a linux machine. It looks like this (minus a few bits): Code: echo "HELO $host.$domain" sleep 1 echo "mail from: vdrreport@$domain" sleep 1 echo "rcpt to:$mailto" sleep 1 echo "data" sleep 1 echo "subject: $host VDR-Report $(date +"%Y.%m.%d %H:%M")" sleep 1 echo "from: "vdrreport@$domain sleep 1 echo "to:$mailto" sleep 1 echo "Mime-Version: 1.0;" sleep 1 echo "Content-Type: text/html; charset="ISO-8859-1&quot (HowTos)