For example:
your_script | ansi2html.sh --bg=dark > blah.html
your_script | ansi2html.sh | mail -a "Content-Type: text/html" Your@email.com
For example:
or