Discussion Locked

mail html document

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How can I send and html document by email. Not as an attachment, within the body...?

3 replies

by ghislain.levesque

No, that send a plain text, but I have found how to do it...

echo "From: $LOGNAME\nTo: $USER_MAIL\nSubject: TESTING123\n\
Mime-Version: 1.0\nContent-Type: text/html\n" > /tmp/file
cat YOUR-HTML-FILE >> /tmp/file
/usr/lib/sendmail -t -oi < /tmp/file
rm /tmp/file

This discussion is closed to new replies.