Re: Delayed mail()... ?
| From: | Richard Davey | Date: | Fri, 20 Feb 2004 13:33:14 +0000 |
| Subject: | Re: Delayed mail()... ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178344@lists.php.net to get a copy of this message | ||
Hello Tristan,
Friday, February 20, 2004, 1:12:01 PM, you wrote:
TPrsc> What they've asked for, is that when they reply to the enquiry, they are
TPrsc> reminded to chase up the enqiry a few days later...
TPrsc> Now I could give them a message on screen, if they happen to be in the
TPrsc> admin area, but what i'd like to do , is simply mail the admin users,
TPrsc> after say, 3 days.
TPrsc> regardless if they even visit the admin area at all...
TPrsc> is this possible at all?
Someone more knowledgeable about SMTP than I will probably be able to
tell you if you can send a mail and have the SMTP server hold onto it
for 3 days - however I suspect it's not very likely.
One way to approach this is to have a PHP script that does nothing but
check to see who is due to be sent an email (based on the date they
replied) and then send out a reminder accordingly.
This script could then be called once a day via a CRON job, or you
personally could click a button and make it happen - the downside
being you'd have to remember to do it every day without failure.
Personally I'd go for the cron job :)
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html