<?php require_once('attachmentEmailer.class.php'); $att = new attachmentEmailer(); $att->from='serverlogs@dixon.io'; $att->to='andy@dixon.io'; $att->subject='Yesterdays Access Log'; $att->send('/var/log/access.log');