A PHP class file that will email the results of a MySQL query as a CSV file attachment.