Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthormihai
    • CommentTimeOct 23rd 2006
     permalink
    I want to make a newsletter for my website, but how can i use cron job in order to send newsletters via e-mail to all my subscribers. I have created a script that creates the e-mail content and send an e-mail but how can i make it acces that script automaticaly.

    Mike
    • CommentAuthordhayes
    • CommentTimeOct 23rd 2006
     permalink
    you can use wget or even rsync to access the script .. you might want to specify a unique "key" to pass to the script to ensure that you are the only one running the script.
  1.  permalink
    What kind of script you need to execute with a cron job?
    PHP,CGI,PERL something else.

    Best, DS
    • CommentAuthoreasement
    • CommentTimeOct 24th 2006
     permalink
    I am working on a BSD box right now, but I would imagine that *nix boxes work the same way. If yo uare using PHP, then the following should work.

    #
    #minute hour mday month wday who command
    #
    # Perform daily/weekly/monthly maintenance.
    1 3 * * * root periodic daily
    15 4 * * 6 root periodic weekly
    30 5 1 * * root periodic monthly


    #HERE's THE LINE YOU WANT TO ADD TO YOUR CRONTAB
    1 3 * * * php /path/to/your/script.php


    This will run the script.php as php at 3:01 every morning. Note (you may have to have php set up as a cgi module. i'm not sure).
    • CommentAuthormihai
    • CommentTimeOct 24th 2006
     permalink
    i've got a PHP that's awaiting to be automaticaly started every week.
    • CommentAuthoreasement
    • CommentTimeOct 25th 2006
     permalink
    This should hyelp you.

    15 4 * * 6 php /path/to/your/script.php

    4:15 in the morning every 6th day of the week(I think I'ts Friday.)
Add your comments
    Username Password
  • Format comments as (Help)