automatic scheduled e-mails

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David Hickman

    automatic scheduled e-mails

    Hi all,

    I have a website that I am building in PHP that I would like to send e-mails
    to users every 2 days to inform of new updates. I know how to trigger the
    sending of e-mails if a user enters the site, and can limit this to only
    happening once every 2 days, but I am interested to know if it is possible
    to have PHP send e-mails automatically in case no one visits the site?

    Any help would be greatly appreciated.

    Many Thanks,
    David


  • Andy Hassall

    #2
    Re: automatic scheduled e-mails

    On Thu, 17 Jul 2003 19:47:28 +0000 (UTC), "David Hickman" <no.spam@please .com>
    wrote:
    [color=blue]
    >I have a website that I am building in PHP that I would like to send e-mails
    >to users every 2 days to inform of new updates. I know how to trigger the
    >sending of e-mails if a user enters the site, and can limit this to only
    >happening once every 2 days, but I am interested to know if it is possible
    >to have PHP send e-mails automatically in case no one visits the site?
    >
    >Any help would be greatly appreciated.[/color]

    For Unix, look at cron.
    For Windows, look at Task Scheduler.

    Use these to periodically run a script through the command-line version of
    PHP.

    --
    Andy Hassall (andy@andyh.co. uk) icq(5747695) (http://www.andyh.co.uk)
    Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)

    Comment

    • Martin C. Petersen

      #3
      Re: automatic scheduled e-mails

      > Use these to periodically run a script through the command-line version
      of[color=blue]
      > PHP.[/color]
      Or use wget to fetch the script that does the work..


      Martin


      Comment

      • Default User

        #4
        Re: automatic scheduled e-mails



        David Hickman wrote:[color=blue]
        >
        > Hi all,
        >
        > I have a website that I am building in PHP that I would like to send e-mails
        > to users every 2 days to inform of new updates. I know how to trigger the
        > sending of e-mails if a user enters the site, and can limit this to only
        > happening once every 2 days, but I am interested to know if it is possible
        > to have PHP send e-mails automatically in case no one visits the site?[/color]


        Sounds like a job for cron. That's a system thing, not PHP, contact your
        host to see if they allow cron jobs.





        Brian Rodenborn

        Comment

        • sk

          #5
          Re: automatic scheduled e-mails

          Andy Hassall wrote:[color=blue]
          > On Thu, 17 Jul 2003 19:47:28 +0000 (UTC), "David Hickman" <no.spam@please .com>
          > wrote:
          >[color=green]
          >>I have a website that I am building in PHP that I would like to send e-mails
          >>to users every 2 days to inform of new updates. I know how to trigger the
          >>sending of e-mails if a user enters the site, and can limit this to only
          >>happening once every 2 days, but I am interested to know if it is possible
          >>to have PHP send e-mails automatically in case no one visits the site?
          >>
          >>Any help would be greatly appreciated.[/color]
          >
          > For Unix, look at cron.
          > For Windows, look at Task Scheduler.
          >
          > Use these to periodically run a script through the command-line version of
          > PHP.[/color]

          Or if you have a web URL that triggers the mailing, have cron or the
          task scheduler run something like wget to trigger the desired URL. Just
          don't expose a script in such a way that it could be used by outsiders
          to cause mischeif.

          -sk

          Comment

          Working...