{{tag>mysql mariadb email}} ====== Send query result as html email ====== Install mutt apt-get install mutt example query mysql --html -uroot -p mydb -e 'select month(timestamp) as "Month", day(timestamp) as "Day" ,count(*) from table1' | mutt -e "set content_type=text/html" -s 'Mysql daily report' user@email.org ====== Tested on ====== * Debian 8 ====== See also ====== * [[wiki:mysql_miscellaneous_commands|mysql miscellaneous commands]] ====== References ======