Automated emails sent from site - no user click

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
spock0149
Forum Newbie
Posts: 10
Joined: Thu Apr 02, 2009 7:37 pm

Automated emails sent from site - no user click

Post by spock0149 »

Hey folks,

I run an auction type website and I'm trying to get an email sent out to a client on my website each day they have an outstanding bids.

They are already sent an email once another user bids on their item, but I want to send out an email at the end of each day whenever number bids>0.

Is this possible to send emails without some kind of user interaction??

Thanks in advance,

Spock
robnet
Forum Commoner
Posts: 85
Joined: Mon Aug 10, 2009 8:32 am
Location: South East, UK

Re: Automated emails sent from site - no user click

Post by robnet »

You'll need to write the page then put it into a cron job (or scheduled task in Windows) to automate its running.

http://www.google.com/search?q=automate+php+scripts
spock0149
Forum Newbie
Posts: 10
Joined: Thu Apr 02, 2009 7:37 pm

Re: Automated emails sent from site - no user click

Post by spock0149 »

robnet wrote:You'll need to write the page then put it into a cron job (or scheduled task in Windows) to automate its running.

http://www.google.com/search?q=automate+php+scripts
Thanks for the reply. I'll send this to my developer to look at.

Is this pretty easy for a good developer who hasn't done it before??
User avatar
lord_webby
Forum Commoner
Posts: 44
Joined: Wed Aug 19, 2009 9:01 am

Re: Automated emails sent from site - no user click

Post by lord_webby »

Wouldn't say it was particularly easy as you can run into issues with permissions that can extend development time - but if all goes according to plan - you can probably set up your first script in about half a day.

After you've done one setting up the next turns into a matter of minutes.

Depending on your server/host setup you may need to use "crontab".
spock0149
Forum Newbie
Posts: 10
Joined: Thu Apr 02, 2009 7:37 pm

Re: Automated emails sent from site - no user click

Post by spock0149 »

lord_webby wrote:Wouldn't say it was particularly easy as you can run into issues with permissions that can extend development time - but if all goes according to plan - you can probably set up your first script in about half a day.

After you've done one setting up the next turns into a matter of minutes.

Depending on your server/host setup you may need to use "crontab".
Brilliant. Thanks for the advice! Will definitely send this on to my developer.
Post Reply