I want to make my ejabberd able to plan messages.
Which could be the best solution for this purpose?
And supposing that I have all the messages stored on the db, with the recipient (to) and with the date (year, month, day, hour..) when they must be send.
Which could be the best option to handle it?
A cronjob at every minute that checks if there are messages to send? And in this case, how could it tells to the Ejabberd that it have to send the message?
Another option to handle it?
Thanks!!!