auction winner email?? how??
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??
necrotic posted this at 04:19 — 14th March 2003.
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();
joyce posted this at 05:54 — 14th March 2003.
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??
zollet posted this at 06:59 — 14th March 2003.
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...
Mark Hensler posted this at 08:06 — 14th March 2003.
He has: 4,048 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
If there is no answer on Google, then there is no question.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.