PowerShellEmailReporter query an MSSQL db, collect the result and send them in a pretty HTML mail Email Example: