By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,393 Members | 1,405 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,393 IT Pros & Developers. It's quick & easy.

automatic scheduled e-mails

P: n/a
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
Jul 16 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Thu, 17 Jul 2003 19:47:28 +0000 (UTC), "David Hickman" <no*****@please.com>
wrote:
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.


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 (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 16 '05 #2

P: n/a
> Use these to periodically run a script through the command-line version
of
PHP.

Or use wget to fetch the script that does the work..
Martin
Jul 16 '05 #3

P: n/a


David Hickman wrote:

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?

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
Jul 16 '05 #4

P: n/a
sk
Andy Hassall wrote:
On Thu, 17 Jul 2003 19:47:28 +0000 (UTC), "David Hickman" <no*****@please.com>
wrote:
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.


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.


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

Jul 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.