I need a script that will look for a file and then send it to a specified email address. It is being run nightly and called by a cron job. Anyone have a link to a similar script. All of the scripts I am finding are like response emails sent after clicking a submit button on a form.
Also, I want my script to look for a file that is named for yesterdays date (i.e. 08-29-11.txt) but I should be able to figure out that myself - I just need a good starting point!
You could take one of those form-email scripts, and just copy the part where the mail with the attachment is created and sent.