SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2005
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need script to get file and send to email address (run from cron)

    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!

  2. #2
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,401
    Mentioned
    147 Post(s)
    Tagged
    4 Thread(s)
    You could take one of those form-email scripts, and just copy the part where the mail with the attachment is created and sent.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •