• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Automatic Email notification everyday

ahmedo

Member
Hi,

I need to send an automatic notification every day at 10 AM to a list of names and emails that are stored in a list to remind them of checking their activities. Is that difficult to do?

Thanks.
 
Yes and no.

We have an 'email' scheduled task (cron) plugin, which can do that.

The tricky part is getting it to run at the right time. The problem being that J! doesn't have a scheduler, as "real" scheduling is an OS dependent task. We fake it, by having our "Fabrik Schedules Task" system plugin run on every (front end) page load, as the last thing J! runs ("onAfterRender"). We then check in our fabrik_cron table to see if there's any tasks to run. But of course, that relies on your site being loaded by someone. If nobody hits your front end till (say) 11am, then the task won't run till then.

The best way round this is to set up your own 'cron' task in your OS. So in Linux, a 'cron' job. Which you can either do by hand on a command line, or if you have CPanel, there's usually a way of setting up a scheduled task there. Or there are third party web sites that let you set up tasks. And your task should be a "wget http://your.site/index.php?fabrik_cron=YOURSECRET". The wget commad is a UN*X command line to fetch a web page.

Then in your email cron plugin, one of the option is "query string secret", which you should set to "YOURSECRET" (well, not literally, but you know what I mean ... just pick a random secret word). What that does is says "only bother running this task if the page load contains this secret word.

-- hugh
 
Thanks Hugh for the reply.

All I wanted was an email to be sent every morning telling everyone in a particular list, please check your sales activities. I may even dare to add a link to all sales leads that have no activities. At the moment, a simple email will do, irrespective whether a page or the portal is visited or not.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top