Hello, I have set the option to send emails with Google by allowing less secure applications, I also set the sending by SMTP but when I create an appointment I receive nothing on the client side or on the employee side. I also added a CRON task with the wp control plugin and also nothing happens. Can you help me? Thanks
Can we go trough the cron setup then real quick; because depending on the server, there are different configurations for it, which you can contact your hosting provider about, or you can check out one of the solutions for it on this link.
GET 'https://yourdomain.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send' > /dev/null
WP Crontrol plugin is the best option if you're not familiar with cron jobx. You can find more info about it, and detailed instructions on how to set it up in our FAQ section.
So, if you already read that, and still need some clarification here's some further info.
You copy only the URL from below a scheduled notification:
Then, go to Tools/Cron Events, and click on "Cron Schedules" tab. In it, add a 15 minute interval:
Then go back to "Cron Events" tab and click on "Add new":
Below it, select "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.
i use WP CONTROL plugin and when i change the parameters like you said ther's now an error. I try to put the differents php line and it's still the same error :(
we could not find this error source, so, yes; please provide me a temporary WP-admin login for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party.
You can write credentials here just check Private Reply so nobody can see them except us.
thank you for the credentials - I apologize for the later response.
As I was still unable to find the reason for the issue (especially since you kindly advised that with PHP client does get the emails and employee does not), I forwarded the matter to a colleague to consult - he will be able to see more in depth.
I will contact you with the solution; thank you for your patience.
Hello,
I have set the option to send emails with Google by allowing less secure applications, I also set the sending by SMTP but when I create an appointment I receive nothing on the client side or on the employee side. I also added a CRON task with the wp control plugin and also nothing happens. Can you help me? Thanks
Hi Frédéric,
thank you for reaching out to us.
Can we go trough the cron setup then real quick; because depending on the server, there are different configurations for it, which you can contact your hosting provider about, or you can check out one of the solutions for it on this link.
Also, you can try this:
*/15 * * * * wget -q -O - "https://www.yourwebsite.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send"
Or this:
*/15 * * * * /usr/local/bin/php ~/public_html/wp-cron.php --action='wpamelia_api' --call='/notifications/scheduled/send'
Or this:
GET 'https://yourdomain.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/notifications/scheduled/send' > /dev/null
WP Crontrol plugin is the best option if you're not familiar with cron jobx. You can find more info about it, and detailed instructions on how to set it up in our FAQ section.
So, if you already read that, and still need some clarification here's some further info.
You copy only the URL from below a scheduled notification:
Then, go to Tools/Cron Events, and click on "Cron Schedules" tab. In it, add a 15 minute interval:
Then go back to "Cron Events" tab and click on "Add new":
Below it, select "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.
Let me know if this setup was fully done.
Hello Ivana,
i use WP CONTROL plugin and when i change the parameters like you said ther's now an error. I try to put the differents php line and it's still the same error :(
Maybe you want an access to my website to see?
Hi Frederic,
we could not find this error source, so, yes; please provide me a temporary WP-admin login for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party.
You can write credentials here just check Private Reply so nobody can see them except us.
Hi Frédéric,
thank you for the credentials - I apologize for the later response.
As I was still unable to find the reason for the issue (especially since you kindly advised that with PHP client does get the emails and employee does not), I forwarded the matter to a colleague to consult - he will be able to see more in depth.
I will contact you with the solution; thank you for your patience.
That's okay, it works. Thank you Ivana for your support.
Hi Frédéric,
wonderful! Thank you for letting me know