473,387 Members | 1,678 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,387 software developers and data experts.

Scheduled E-mails

I would like to create a "send out scheduled e-mails" function in my
PHP application.
I guess it would be hard to program this function using PHP.
What ways can I implement this?

Jul 17 '05 #1
4 1565
> I would like to create a "send out scheduled e-mails" function in my
PHP application.


If I were you I would save the emails and the time they should be sent into
some database and then periodically run a script that would send (and mark
as sent) any e-mails that are pending.

Regards,

Anze
Jul 17 '05 #2
bi*******@gmail.com napisa³:
I would like to create a "send out scheduled e-mails" function in my
PHP application.
I guess it would be hard to program this function using PHP.
What ways can I implement this?


Are you using Linux? If so, you could simply use a cronjob to send
them. :)
Or, if you really HAVE to use php, you could use a cronjob to access a
page with the e-mail sending script with wget:
wget -o /dev/null -O /dev/null yourscript.php

Cheers
Mike
Jul 17 '05 #3
On Tue, 05 Apr 2005 20:10:49 +0200, Micha³ Wo¼niak
<mikiwoz_remove_this@yahoo_remove_this.co.uk> wrote:
bi*******@gmail.com napisa³:
I would like to create a "send out scheduled e-mails" function in my
PHP application.
I guess it would be hard to program this function using PHP.
What ways can I implement this?


Are you using Linux? If so, you could simply use a cronjob to send
them. :)
Or, if you really HAVE to use php, you could use a cronjob to access a
page with the e-mail sending script with wget:
wget -o /dev/null -O /dev/null yourscript.php


PHP has a perfectly good command-line executable that'd be preferable to this,
if available.

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #4
Andy Hassall wrote:
On Tue, 05 Apr 2005 20:10:49 +0200, Micha³ Wo¼niak
<mikiwoz_remove_this@yahoo_remove_this.co.uk> wrote:

bi*******@gmail.com napisa³:

I would like to create a "send out scheduled e-mails" function in my
PHP application.
I guess it would be hard to program this function using PHP.
What ways can I implement this?


Are you using Linux? If so, you could simply use a cronjob to send
them. :)
Or, if you really HAVE to use php, you could use a cronjob to access a
page with the e-mail sending script with wget:
wget -o /dev/null -O /dev/null yourscript.php

PHP has a perfectly good command-line executable that'd be preferable to this,
if available.

And, if you're running Windows, there are 2 cron-like setups: the
Windows Task Scheduler and the "AT" command. Just run "at -?" from a
command prompt to see the options. The advantage AT has over other
Windows methods of doing this is that, as a commandline program itself,
your script can easly alter or add scheduling options for itself.

J Wynia
Sokkit Web Server Toolkit
www.sokkit.net
Jul 17 '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...
4
by: Colin Steadman | last post by:
We have a number of scheduled tasks on our IIS server that run daily at some point during the early morning. These tasks run as a specific user that has the correct permissions to perform whatever...
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,...
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,...
3
by: Lenn | last post by:
Hi, I developed a console .exe application which is going to run on scheduled basis, it will be scheduled to run in Windows Scheduled tasks. Client wants some kind of utility that would help them...
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). ...
2
by: Tatter | last post by:
I have a simple .NET 1.1 console application, written with Visual Studio .NET 2003, that needs to be run on a Windows XP system as a scheduled task. When run on its own, the program executes with no...
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: 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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.