Timed Mails?
Moderator: General Moderators
-
kleptomania
- Forum Newbie
- Posts: 8
- Joined: Mon Mar 22, 2004 9:03 am
Timed Mails?
need to wite a pages that do the following.
1) user enters several email addresses and also specifys several times throughout the day say 10am, 12pm, 2pm, 4pm
2) The site then emails these addresses with a link and they fill out a form, answering a few questions, the DB needs to retain this info
3)The site then needs to email all these addresses at pre determined times set by the user at step one.
Anyone seen/got/used any code that I could modify/use?
1) user enters several email addresses and also specifys several times throughout the day say 10am, 12pm, 2pm, 4pm
2) The site then emails these addresses with a link and they fill out a form, answering a few questions, the DB needs to retain this info
3)The site then needs to email all these addresses at pre determined times set by the user at step one.
Anyone seen/got/used any code that I could modify/use?
You'll need to set up a cron-job that calls the PHP script which sends the mails. To do this you'll need to either
1) use a the control panel to set up the cron-job (e.g. http://domainname-registration.org.uk/w ... onJobs.htm)
2) or place a file in the respective directory (see http://www.die.net/doc/linux/man/man1/crontab.1.html)
Example: to run a PHP script called "my_PHP_cron_script.php" every hour the cron-file would read
0 */1 * * * php my_PHP_cron_script.php -f
1) use a the control panel to set up the cron-job (e.g. http://domainname-registration.org.uk/w ... onJobs.htm)
2) or place a file in the respective directory (see http://www.die.net/doc/linux/man/man1/crontab.1.html)
Example: to run a PHP script called "my_PHP_cron_script.php" every hour the cron-file would read
0 */1 * * * php my_PHP_cron_script.php -f
-
kleptomania
- Forum Newbie
- Posts: 8
- Joined: Mon Mar 22, 2004 9:03 am
-
kleptomania
- Forum Newbie
- Posts: 8
- Joined: Mon Mar 22, 2004 9:03 am
I accept donations in form of a monthly supply of bounty-bars for suggesting cron-jobs. Don't email them to me, my spam-filter doesn't like them.kleptomania wrote:thanks for the offer but ill take up one of the many others ive had and split the profits with them.Bech100 wrote:You can have 1 hour of my time for that price. Should get you about 1 quarter of a script.kleptomania wrote:...earn £30 for wirting me a few scripts.![]()
Mark
-
kleptomania
- Forum Newbie
- Posts: 8
- Joined: Mon Mar 22, 2004 9:03 am
Re: Timed Mails?
This sounds like a Greeting Card site system to me.kleptomania wrote:need to wite a pages that do the following.
1) user enters several email addresses and also specifys several times throughout the day say 10am, 12pm, 2pm, 4pm
2) The site then emails these addresses with a link and they fill out a form, answering a few questions, the DB needs to retain this info
3)The site then needs to email all these addresses at pre determined times set by the user at step one.
Anyone seen/got/used any code that I could modify/use?
Check out some open source card applications at hotscripts or something.

