How To Configure Automatic SMS In InfixEdu.

10th Feb, 2025

In this option, you can configure automatic SMS for absent notifications.






To add a time, fill in the Start Time and Status.





Now, you will see that the time is now added to the Time Setup List.





How to edit time from the time Setup List

To edit time from the time setup list, click on Select > Edit.






Now you will be able to edit the time. Just re-enter the Start Time and The Status and Click on Update Time Setup.





How to delete time from the time Setup List

To Delete time from the time setup list, click on Select > Delete.





How to configure automatic SMS for absent notifications

You can set up automatic SMS alerts to notify the parents or guardians if their child is absent without any prior notice.

To send automatic SMS, you have to configure the cron job.

Cron is a utility program that lets you input commands that can be used to schedule tasks over and over aging at a specific time. Tasks we schedule in the cron system are called cron jobs.

Firstly, just log in to your cPanel as an admin. Then, navigate to Cron Jobs under the Advanced option.


After clicking on Cron Jobs, you will be forwarded to another page where you can see the example PHP Command[1]. Configure Cron job to run continuously on an hourly, daily, or even monthly rotation[2]. Configure PHP commands[3] and then click on the Add new Cron Job Button[4].


1. PHP Command example:

This section shows you a sample command for your corn jobs. You only need this section of the code you see in the example.

/usr/local/bin/php/

2. Common Settings:

In the common setting, you can select.

Minutes — A Number Between 0 And 59.

Hours — A Number Between 0 And 23. Cron Uses The 24-hour Format, So 4 P.m. Is 16, 11 P.m. Is 23, And So On. 

Days Of The Week — A Number Between 0 And 7, With Sunday Represented As Either 0 Or 7.

Months — A Number Between 1 And 12.

3. Command

This section will need the previous code in the PHP command example.

/usr/local/bin/php/

You need another code from the SMS SENDING TIME option. 

 To find the PHP code, click on Cron Command.




After clicking on Cron Command, You will see a popup displaying the PHP code you need.

artisan absent_notification:sms






As you can see, it also can see the example code at the bottom of the popup. 

home/freesch2/public_html/spn4/infixedu/v6.6.1/ && php artisan absent_notification:sms >> /dev/null 2>&1





Now, combine the Two PHP codes you see on the corn job page and SMS Sending Time page as you see here.

/usr/local/bin/php/home/freesch2/public_html/spn4/infixedu/v6.6.1/ && php artisan absent_notification:sms >> /dev/null 2>&1

Enter this PHP command in the Command section.