PHP Classes
elePHPant
Icontem

Schedule SMS in month, day, hours, minutes and seconds: Schedule SMS sending

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  All requests RSS feed  >  Schedule SMS in month, day, hours, minutes and seconds  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Schedule SMS in month, day, hours, minutes and seconds

A request is featured when there is no good recommended package on the site when it is posted. Edit

Picture of Joshua Njovu by Joshua Njovu - 1 year ago (2015-02-12)

Schedule SMS sending

This request is clear and relevant.
This request is not clear or is not relevant.

+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 Clarification request
  • 1. Picture of Manuel Lemos 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. Picture of Gerry Danen 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. Picture of Dan Thanh 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. Picture of Manuel Lemos 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. Picture of Dan Thanh 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. Picture of Manuel Lemos 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. Picture of Dan Thanh 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. Picture of Manuel Lemos 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. Picture of Joshua Njovu 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

Ask clarification

2 Recommendations

PHP Cron Daemon: Database driven PHP job scheduler like cron

This recommendation solves the problem.
This recommendation does not solve the problem.

+4

Picture of Rizwan Abbas by Rizwan Abbas Reputation 90 - 11 months ago (2015-02-22) Comment

you can try this package to schedule the sms


PHP Sweepstakes: Calculate the days of periodical events

This recommendation solves the problem.
This recommendation does not solve the problem.

0

Picture of Dan Thanh by Dan Thanh package author package author Reputation 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.

  • 3 Comments
  • 1. Picture of Manuel Lemos 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. Picture of Dan Thanh by Dan Thanh package author package author - 11 months ago (2015-02-19) in reply to comment 1 by Manuel Lemos Reply

    Cron jobs is only for periodical events.

  • 3. Picture of Joshua Njovu 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
: 
: