justuptime.com - monitor your servers & websites

auction winner email?? how??

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

They have: 164 posts

Joined: Nov 2001

i'm in the middle of developing an auction, but stucked in the last part.

auction winners will received an email informing them tat they've won the auction.

my problem is, i dono how to automatically send out tat email.

can anybody help me with this??

He has: 296 posts

Joined: May 2002

http://www.php.net/mail

When the winner has been selected just have the script send with mail();

They have: 164 posts

Joined: Nov 2001

i know how to send out email. wat imean is, how to know when the auction ends and automatically send out email to the winner??

He has: 1,016 posts

Joined: May 2002

Hmm........ (I'm a little stunned that you've managed to code an auction script and yet not able to send email to the winners)

Anyways, it depends on your database setup and what your auction script does once an auction is over. Does it somehow mark the winners? If so, just put a few extra lines to send an email to each winner...

Saeed Sarvi [ Email | Profile ]

Mark Hensler's picture

He has: 4,044 posts

Joined: Aug 2000

You could have a cron job run every 30 minutes. The cron would check the DB for any recently closed auctions, email the appropriate people, then flag the auction as having been responded to.

Mark Hensler ["Max Albert"] [Email]
If there is no answer on Google, then there is no question.