Results 1 to 9 of 9

Thread: scheduled e-mail sendings

  1. #1

    Thread Starter
    Hyperactive Member Kagey's Avatar
    Join Date
    Sep 2000
    Location
    The Wilderness of New Brunswick
    Posts
    294

    Cool scheduled e-mail sendings

    hey all,

    one of my clients has a php based website and he wants a feature put in where an email can be made up, then scheduled to be sent at a particular date.

    i know how to do all the email stuff, but i was wondering how i can schedule something like that in php, and if not, how else can i do it?

    thanks for any advice

  2. #2
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236
    for scheduling a time to execute something, I believe you would need to set up a kron job. I could be wrong but I have never been able to schedule anything in php. I always just write up a perl kron job script.

  3. #3

    Thread Starter
    Hyperactive Member Kagey's Avatar
    Join Date
    Sep 2000
    Location
    The Wilderness of New Brunswick
    Posts
    294
    interesting. i dont know perl or that much about unix/linux,,,

    so what i would have to do is be able to access the server and setup a kron job that would run my perl script every day? then that perl script would check the mysql database for email that has to be sent and sends it? is that correct?

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    A Cron Job allows you to schedule a php or perl script to run at a certain interval on a Unix (and probably Linux) system. I'm not exactly sure how to set one up, because my host offers such capability through the user Control Panel.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  5. #5
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    I don't know if this will help, but it's the best I could find on a quick google search: http://how-to.dnswatch.com/cronhelp.php4
    My evil laugh has a squeak in it.

    kristopherwilson.com

  6. #6

    Thread Starter
    Hyperactive Member Kagey's Avatar
    Join Date
    Sep 2000
    Location
    The Wilderness of New Brunswick
    Posts
    294
    oh deadly, you can make it run a php script? that is even better since i dont know perl

    thanks for the link, will take a look

  7. #7

    Thread Starter
    Hyperactive Member Kagey's Avatar
    Join Date
    Sep 2000
    Location
    The Wilderness of New Brunswick
    Posts
    294
    nice like hobo, i understand it now. but how can i set it up so that a php script is run? and is there anything special i have to include in my php script to make able to be run via command line?

    also what would be the 'command' section, since you cant just run a php script by itself (i assume you have to use the interpreter some how)


    thanks

  8. #8
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    This site looks as if it explains how to set it up to run a php script. I don't have Linux on any of my machines anymore, so I can't test it for you to see.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  9. #9

    Thread Starter
    Hyperactive Member Kagey's Avatar
    Join Date
    Sep 2000
    Location
    The Wilderness of New Brunswick
    Posts
    294
    lol thanks for doing all the grunt work for me hobo, you're quite a guy!

Posting Permissions

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



Click Here to Expand Forum to Full Width