Timed Mails?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
kleptomania
Forum Newbie
Posts: 8
Joined: Mon Mar 22, 2004 9:03 am

Timed Mails?

Post by kleptomania »

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?
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

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
kleptomania
Forum Newbie
Posts: 8
Joined: Mon Mar 22, 2004 9:03 am

Post by kleptomania »

OK, whos got a nochex or paypal account and wants to earn £30 for wirting me a few scripts. I can send a m ore detailed spec on what it needs to do but shouldnt be that complicated.

PM me please
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

kleptomania wrote:...earn £30 for wirting me a few scripts.
You can have 1 hour of my time for that price. Should get you about 1 quarter of a script. :roll:

Mark
kleptomania
Forum Newbie
Posts: 8
Joined: Mon Mar 22, 2004 9:03 am

Post by kleptomania »

Bech100 wrote:
kleptomania wrote:...earn £30 for wirting me a few scripts.
You can have 1 hour of my time for that price. Should get you about 1 quarter of a script. :roll:

Mark
thanks for the offer but ill take up one of the many others ive had and split the profits with them.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

kleptomania wrote:
Bech100 wrote:
kleptomania wrote:...earn £30 for wirting me a few scripts.
You can have 1 hour of my time for that price. Should get you about 1 quarter of a script. :roll:

Mark
thanks for the offer but ill take up one of the many others ive had and split the profits with them.
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
Forum Newbie
Posts: 8
Joined: Mon Mar 22, 2004 9:03 am

Post by kleptomania »

ok ill msn them accross, mini or fun size?
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Would I have to sign up with MSN? Ack :( Why don't you just leave them in my PM-inbox here on this board. I am sure no-one would take them.

Oh, and I take the normal size, my inbox isn't too full atm, so there is plenty of space. No need for that mini stuff.
kleptomania
Forum Newbie
Posts: 8
Joined: Mon Mar 22, 2004 9:03 am

Post by kleptomania »

Image
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Image
Steveo31
Forum Contributor
Posts: 416
Joined: Sun Nov 23, 2003 9:05 pm
Location: San Jose CA

Post by Steveo31 »

...wrong forum?
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Re: Timed Mails?

Post by m3mn0n »

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?
This sounds like a Greeting Card site system to me.

Check out some open source card applications at hotscripts or something.
Post Reply