How to send a html email with the bash command “sendmail”?
问题 Anyone has a demo available? Sendmail is said to be not scalable,but it's free,so I decided to use it first for now:) 回答1: I couldn't get any of the posted solutions to work, but finally found this elsewhere, and it works great: ( echo "From: ${from}"; echo "To: ${to}"; echo "Subject: ${subject}"; echo "Content-Type: text/html"; echo "MIME-Version: 1.0"; echo ""; echo "${message}"; ) | sendmail -t 回答2: If I understand you correctly, you want to send mail in HTML format using linux sendmail