473,467 Members | 1,554 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Delayed Email

I am being asked to send an email out after a form has been filled out
and submitted. The requirement though is that this email gets sent
out an hour after the form has been filled out. The user is also
supposed to be directed to another static html page after they have
filled out the form. Anyone have any clever ideas to get around the
buffering issues that are caused when using the sleep() command?

I would like to implement a PHP only solution if possible. Keep in
mind that we are using a Sun Cobalt appliance with a limited PHP
4.0.6. Any suggestions would be greatly appreciated.

Thanks!

Wes
Jul 17 '05 #1
2 2511

On 1-Oct-2003, we***********@yahoo.com (Wes Bailey) wrote:
I am being asked to send an email out after a form has been filled out
and submitted. The requirement though is that this email gets sent
out an hour after the form has been filled out. The user is also
supposed to be directed to another static html page after they have
filled out the form. Anyone have any clever ideas to get around the
buffering issues that are caused when using the sleep() command?

I would like to implement a PHP only solution if possible. Keep in
mind that we are using a Sun Cobalt appliance with a limited PHP
4.0.6. Any suggestions would be greatly appreciated.


sleep() is a bad idea for many reasons, not the least of which is a server
restart will cause the emails to never be sent.

I would build a table of the unsent emails and the time they are due to be
sent, then I would setup a cron job to send and delete the time ready emails
from the table. You just have to pick an interval for the cron job.

--
Tom Thackrey
www.creative-light.com
Jul 17 '05 #2
Wes Bailey wrote:
I am being asked to send an email out after a form has been filled out
and submitted. The requirement though is that this email gets sent
out an hour after the form has been filled out. The user is also
supposed to be directed to another static html page after they have
filled out the form. Anyone have any clever ideas to get around the
buffering issues that are caused when using the sleep() command?

I would like to implement a PHP only solution if possible. Keep in
mind that we are using a Sun Cobalt appliance with a limited PHP
4.0.6. Any suggestions would be greatly appreciated.

Thanks!

Wes


sleep is not possible, i don't explain why, you will find out!
What you can do ist a kind of cron job in your index.php.
Everytime the page is visited the system checks if it has to send a mail
(after the hour is over), although i wouldn't be exact timing and if
there are not many ppl on this site i can happen that the mail will be
sent days, months, years after.
Easiest would be a real cronjob on the machine!

cy
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Leo Breebaart | last post by:
Hi all, I have a question about Python and delayed evaluation. Short-circuiting of Boolean expressions implies that in: >>> if a() and b(): any possible side-effects the call to b() might...
13
by: Brian | last post by:
Hi all... This question is more for the GURUs out there. It is not a question on how to do something, but why it happens, and I am trying to figure out if there is a pattern. I am using IE, but...
0
by: subi | last post by:
Hi, I don't know where's the best place to post my question. I hope it suits this group. I have created an assembly with a delay sign attribute set to true in the AssemblyInfo.cs. And the key...
3
by: Nospam | last post by:
I'm trouble shooting my obfuscated program. I'd like suggestions on some tools to help. I'm using vs2005 with delayed signing option from the project settings and reading the hash from a key.snk...
5
by: Jim in Arizona | last post by:
I realize that by design, web client/server interaction is disconnected. I'm wondering if there is a way that when a client/server interaction occurs, if there is a way to start a time on the web...
1
by: PraveenKadkol | last post by:
Hi, My question : If my process is taking more than 30 mins to complete, then i need to send out email to all the users. I have two forms, 1 is "Main form" and another is dummy form, dummy...
2
by: Amey Agnihotri | last post by:
Hi! I'm trying to run a few AT commands on a GSM modem. I'm doing this in C#.Net 2005. When I run a few commands one after the other, the response generation takes a long time. The response for...
8
by: Grorange | last post by:
Writing ASP.NET pages, I have a need for client-side functions to prevent going to the server for every small change. I have a list of server side created checkboxes filled with a lot of...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

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.