Recommend this page to a friend! | Stumble It! | Bookmark in del.icio.us |
All requests | > | Schedule SMS in month, day, hours, minutes and seconds | > | Request new recommendation | > | Featured requests | > | No recommendations | ||
by Joshua Njovu - 1 year ago (2015-02-12) sms scheduler
+5 | Many third party APIs for SMS sending can't schedule the message delivery. I have a third party API for sending SMS but I want to schedule the delivery of SMS as well. |
1. by Manuel Lemos - 1 year ago (2015-02-13) Reply
If the API can't schedule the SMS message delivery, you can create a queue on a database with the messages that you want to send.
Then you can use cron or whatever is your system scheduler to poll the queue and see if it is time for the next message to be delivered.
I have not seen a class specifically to queue SMS messages, but it would not be hard to implement one.
2. by Gerry Danen - 0 years ago (2015-02-18) in reply to comment 1 by Manuel Lemos Comment
This is the best solution, Joshua.
Manuel is right. I do the same with weekly reports that are scheduled with cron to run Sunday night.
I also have a cron job running every few minutes to look at a report queue (MySQL table with appropriate info), to see if a report needs to be run.
3. by Dan Thanh - 11 months ago (2015-02-19) in reply to comment 2 by Gerry Danen Comment
Cron jobs is only for periodical events.
4. by Manuel Lemos - 11 months ago (2015-02-19) in reply to comment 3 by Dan Thanh Comment
Yes, but you can run a cron job periodically to check if it is time to send a scheduled message.
If it is time, the message will be sent and removed from the queue. Otherwise nothing is done.
5. by Dan Thanh - 11 months ago (2015-02-22) in reply to comment 4 by Manuel Lemos Comment
Imagine themesseage has. to be send continously for x days. Its not so simple to use a queue and dequeue it and look for the next message in the queue that neeeds also send continuously. You need some logic when the message start and stop sending plus the periodically event for example daily, weekly, monthly. There is only a few cron can do.
6. by Manuel Lemos - 11 months ago (2015-02-22) in reply to comment 5 by Dan Thanh Comment
The idea of the general poster is to schedule messages that will be sent only once, not periodically.
So the message can be scheduled once at a specific time, not a period that needs to be repeated regularly.
7. by Dan Thanh - 11 months ago (2015-02-22) in reply to comment 6 by Manuel Lemos Comment
Ues but its. not the same when you repeated events and my script. For example you can pre compute the whole year. It shows the start and stop date and also you. you define the time when it needs to run again.
8. by Manuel Lemos - 11 months ago (2015-02-22) in reply to comment 7 by Dan Thanh Comment
Yes, but what I got from the original poster is that he just wants to send individual messages only once at a specific date and time, not the same message regularly.
9. by Joshua Njovu - 10 months ago (2015-03-23) in reply to comment 1 by Manuel Lemos Comment
Manual, I want some kind of high level package, where you just pass let us assume , Date and a message, then the package does the rest of the work
+4 | by Rizwan Abbas 90 - 11 months ago (2015-02-22) Comment you can try this package to schedule the sms |
0 | by Dan Thanh 100 - 0 years ago (2015-02-18) Comment You can try my package Sweepstakes. It used to calculate the days of periodical events and events over many days. |
1. by Manuel Lemos - 0 years ago (2015-02-18) Reply
The problem is not really calculating days, but rather start an action at a specific scheduled day.
2. by Dan Thanh Reply
- 11 months ago (2015-02-19) in reply to comment 1 by Manuel LemosCron jobs is only for periodical events.
3. by Joshua Njovu - 10 months ago (2015-03-23) in reply to comment 2 by Dan Thanh Reply
Thanks gentalmen. Chi i appreciate that solution, but my forcus as Manuel has said is to send at a given PERIOD. The challenge with cron jobs though is the they require manual implementation. I though wanted some kind of abstraction.
Recommend package | |
|