Before that i had old version 7.5.x, and everything was okay.. SMS were sent at 12:00 to those who had appointment next day.. but now, they got send to all the people, every 15 mins (cron event)
Thanks for reaching out to us. My first guess is that the cron event is not properly configured, there is an option to configure the exact time when the cron will trigger.
You copy only the URL from below a scheduled notification:
Then, go to Tools/Cron Events, and click on the "Cron Schedules" tab. In it, add a 15-minute interval:
Then go back to the "Cron Events" tab and click on "Add new":
Below it, select the "PHP Cron event" radio button, and add the URL you copied from Amelia/Notifications in this form:
file_get_contents("yourURL");
Below it add the name and set it to run a few minutes in the future, using the provided time format. So, if you're adding the cron event at 12:45 (local, current time), set it to run at 12:50; and then select the schedule you previously selected:
Click on Add Event, and that's it.
The cron runs every 15 minutes and checks if there's an email to be sent. So, in Amelia Notifications, your scheduled notifications are set to run every day at a certain time. If you set that time to be 15:00 (for example), the emails will be sent when the cron runs after that time.
For example, there's an appointment booked for tomorrow, and it's currently 14:44 - the cron runs, but since it's not yet 15:00, it doesn't send anything. It runs again after 15 minutes, so at 14:59, but there are still no emails flagged by Amelia, so it doesn't send anything. Then it runs again at 15:14 and it sees there's an email that should've been sent at 15:00, so it sends the email. It will only send emails when Amelia sees an appointment scheduled for the next day.
Everything was working fine until i've updated it to the latest version.
Problem is in your site, because i think what you've done is next thing: if sms is not sent, it will be sent agaon and again and again.
I've created my own api, which sends sms (replaced amelia code), its cheaper. 4 cents per sms instead of 27 cents. It was working fine untill you've created this "feature" for sms to be resend if not delivered.
Unfortunatelly, there was a minor SMS issue, but this is fixed now. If you provide the WP admin credentials, I can forward them to developers for troubleshooting, but I suppose you will use your custom solution?
So yeah.. What i do with my API, i just commented the Amelia code for sms's (providers) and i've entered my own API.. But like you said, issue is now because plugin is checking if sms was delivered or not, and i dont want that, because i check delivery status on different place.. I downgraded amelia plugin to 7.2.x... Is it possible to deactivate this feature in the newest version of amelia?
Perhaps i can check with developers if this can be disabled since this is an isolated use case. Let me double-check with them and I will get back to you with the solution.
If we understand the part about commenting in our code and using your own API, could it be that this was overwritten with a plugin update? You might want to check the part you edited in the plugin (if this is the case).
Alternatively, you can use this filter for sending SMS notifications, which will skip sending them. This script should be added to your wp-content/mu-plugins/functions.php file or your child theme's functions.php file:
URGENT! - Please i need fast reply, because usually it takes too long..
SMS are getting sent every 15 mins (next day reminder).
I updated amelia yesterday and since then, everything is bugged.
Before that i had old version 7.5.x, and everything was okay.. SMS were sent at 12:00 to those who had appointment next day.. but now, they got send to all the people, every 15 mins (cron event)
Hello IAN,
Thanks for reaching out to us. My first guess is that the cron event is not properly configured, there is an option to configure the exact time when the cron will trigger.
You copy only the URL from below a scheduled notification:
Then, go to Tools/Cron Events, and click on the "Cron Schedules" tab. In it, add a 15-minute interval:
Then go back to the "Cron Events" tab and click on "Add new":
Below it, select the "PHP Cron event" radio button, and add the URL you copied from Amelia/Notifications in this form:
Below it add the name and set it to run a few minutes in the future, using the provided time format. So, if you're adding the cron event at 12:45 (local, current time), set it to run at 12:50; and then select the schedule you previously selected:
Click on Add Event, and that's it.
The cron runs every 15 minutes and checks if there's an email to be sent. So, in Amelia Notifications, your scheduled notifications are set to run every day at a certain time. If you set that time to be 15:00 (for example), the emails will be sent when the cron runs after that time.
For example, there's an appointment booked for tomorrow, and it's currently 14:44 - the cron runs, but since it's not yet 15:00, it doesn't send anything. It runs again after 15 minutes, so at 14:59, but there are still no emails flagged by Amelia, so it doesn't send anything. Then it runs again at 15:14 and it sees there's an email that should've been sent at 15:00, so it sends the email. It will only send emails when Amelia sees an appointment scheduled for the next day.
I hope it helps.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
no, it's not about the configuration.
Everything was working fine until i've updated it to the latest version.
Problem is in your site, because i think what you've done is next thing: if sms is not sent, it will be sent agaon and again and again.
I've created my own api, which sends sms (replaced amelia code), its cheaper. 4 cents per sms instead of 27 cents. It was working fine untill you've created this "feature" for sms to be resend if not delivered.
Hello Ian,
Unfortunatelly, there was a minor SMS issue, but this is fixed now. If you provide the WP admin credentials, I can forward them to developers for troubleshooting, but I suppose you will use your custom solution?
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Stefan, thank you for fast replies.
So yeah.. What i do with my API, i just commented the Amelia code for sms's (providers) and i've entered my own API.. But like you said, issue is now because plugin is checking if sms was delivered or not, and i dont want that, because i check delivery status on different place.. I downgraded amelia plugin to 7.2.x... Is it possible to deactivate this feature in the newest version of amelia?
Hi Ian,
Perhaps i can check with developers if this can be disabled since this is an isolated use case. Let me double-check with them and I will get back to you with the solution.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Ian,
I'm still checking this with the developers. As soon as I have feedback, I will get back to you. Thank you again for your patience and understanding.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello IAN,
If we understand the part about commenting in our code and using your own API, could it be that this was overwritten with a plugin update? You might want to check the part you edited in the plugin (if this is the case).
Alternatively, you can use this filter for sending SMS notifications, which will skip sending them. This script should be added to your wp-content/mu-plugins/functions.php file or your child theme's functions.php file:
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables