473,385 Members | 1,898 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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


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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Bart Simpson | last post by:
Hi, I want to control 'Scheduled Tasks' in Windows 2003 by python program. But I couldn't find any Python module about win32 'Scheduled Tasks'. I could find only Perl module about it. (see...
5
by: A. Lovhaug | last post by:
I have a console application built in the .NET Framework. This application basically executes an XCopy based on parameters that I pass to it. I use it for creating scripts for backing up folders,...
1
by: Melissa Meyer via SQLMonster.com | last post by:
How do you set a stored proceedure for automatic execution? -- Message posted via http://www.sqlmonster.com
6
by: John Bowman | last post by:
Hi, I have a C# app that needs to launch the "Add Scheduled Tasks" wizard found in the control panel "Scheduled Tasks" applet. I realize that this "applet" really just opens the tasks folder,...
1
by: satelite | last post by:
Hello, I am writing an exe that is intended to be run via a scheduled task. However, I also need the flexibility to have users run the scheduled task manually (right click task and select run). ...
7
by: Peter S. | last post by:
I currently have created a C# program that automatically updates an SQL database once everyday. It's an application that I manually start. I want make it so that if the (Windows 2003) server...
1
by: Myster Edd | last post by:
I have a strange problem that I think deals with security on SQL 2005. I have a scheduled task that runs on a Windows 2000 machine. It calls a vb script which creates a connection to SQL Server. ...
0
by: swarna_nama | last post by:
i need to configure the db2 database for automatic backup and need to maintain atleast 2 backup images of the database in db2 . I have updated the configuration parameters auto_maint and...
0
by: Paulson | last post by:
Dear Freinds I want to make a program that acts as a reminder for the users.I need to open up the Scheduled task wizard programmatically.If you type Tasks in the run command the Tasks...
9
by: jdaelhousen | last post by:
I have a bit of a problem I'm hoping someone can shed some light on... I have a VB.Net console application written in VS 2003 that produces a .exe file that now sits on a Windows 2000 server...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.