User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » automated time-delayed emails in php? Page [1]  
BigMan157
no u
103354 Posts
user info
edit post

is there a way to have the mail function in php time delay when an email is spent

like if you have a certain date that you input to have the mail sent, is there a way to have it not sent until that date?

1/12/2006 1:57:09 PM

OmarBadu
zidik
25073 Posts
user info
edit post

hold the data into a queue until a specificed time and then send it on

1/12/2006 1:58:00 PM

poopface
All American
29367 Posts
user info
edit post

The Queen, The Vatican, The Gettys, The Rothschilds, *and* Colonel Sanders before he went heads up.

1/12/2006 2:03:44 PM

dFshadow
All American
9507 Posts
user info
edit post

cron job

1/12/2006 2:20:09 PM

BigMan157
no u
103354 Posts
user info
edit post

examples plz

what i'm trying to do is have a list of users that can be checked with one of two options

option 1 will send them an email immediately upon form submission, which is easy enough with the mail() function

option 2 will send them an email on a specified date, which i'm not sure how to approach

1/12/2006 3:42:53 PM

mellocj
All American
1872 Posts
user info
edit post

if option 2, insert the message and send to date into a database.. have another script that runs daily, and sends the message if that date = today. setup cron to run that script daily.

1/12/2006 4:06:55 PM

BigMan157
no u
103354 Posts
user info
edit post

i dunno if i have access to cron

i suppose i'll check tomorrow

1/12/2006 5:33:33 PM

Noen
All American
31346 Posts
user info
edit post

yep cron job

1/13/2006 10:27:58 AM

OmarBadu
zidik
25073 Posts
user info
edit post

every user has access to at least their own cron

1/13/2006 10:36:57 AM

 Message Boards » Tech Talk » automated time-delayed emails in php? Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.