October 31st, 2013, 05:20 PM
PHP Email Response Add Delay
I've created a PHP form for my website and have added an email response to it to be sent to the user once they've submitted their details. What I'd like to do is add in a delay of some sort so that the user doesn't immediately receive the email. I'd like to pretend that it's a real person emailing them back instead of them receiving an email 2 seconds after clicking the submit button.
Any ideas how I'd do that?
October 31st, 2013, 05:36 PM
Place the message in a queue and use a CRON job to process the queue and send the message how ever long after it was entered into the queue.
November 1st, 2013, 04:40 AM
you could add a delay but there is no point. everyone knows that these emails you get are automated.
November 1st, 2013, 05:01 AM
Well I don't want that to be the case. I currently send the replies myself to stop this issue as I don't want the user to receive them automatically. I want them to feel that there's a person at the other end of the computer. The form is to sign up to a members club so I want the user to feel welcomed by a club member and not a computer.
November 1st, 2013, 11:29 AM
So your poor users have to wait for their email just so that you can pretend you're sending them manually? Do you really think people in the 21st century a) don't see through that and b) appreciate waiting? I don't.
Either you really send a personal welcome written by you. Or you get the email out as quickly as possible. But lying and delaying is rarely a good idea. Users aren't stupid, and they're used to getting their stuff immediately.