Objective: To email an attachment from using PHP. Usage: ~>./phpEmailer.php to@somewhere.com "Witty Subject" attachment.txt

Copy this into phpEmailer.php and be sure to chmod +x phpEmailer.php so that it is executable. Also make sure to specify the exact path to PHP as it may be different.