Answer the question
In order to leave comments, you need to log in
How to send an order letter after a certain time?
How to send an order letter after a certain time? e.g. after placing an order in 20 minutes
only by cron?
Answer the question
In order to leave comments, you need to log in
Perhaps, through cron - this is not the only, but the most reasonable option.
You can run a cron task at least every minute.
The correct script will not create a large load.
It will look for exactly those orders where the letter has not yet been sent, and more than 20 minutes have passed in time (and less than a day, probably).
If we consider as an alternative - a delay in the script (something like sleep) for 20 minutes - this is not a rational solution at all.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question