Okay
  Public Ticket #3520614
Scheduled mails aren't send
Closed

Comments

  •  2
    Nael started the conversation

    I configured scheduled mails like it is explained in the documentation ( https://wpamelia.com/faq/#Notifications ) and the tutorial video (https://www.youtube.com/watch?v=kN3fQ-cVtek). 

    But they are not send to the customers. 

    I thought it was because i didn't activate the scheduled mails but the issue is still there. 

    I created 4 differents scheduled mail : 

    3 has to be send BEFORE the appointement :

    On 7 days before, another one 2 days before and the third one , one day before. 

    The last one has to be send AFTER the appointement. 

    None of those mails are send. I did the "test" like it is explain in the Youtube Video and it works. But, in "reality", my customer doesn't receive it. So I tried with a fake appointement by myself and , effectively, I do not receive the 4 differents scheduled mails I configured.

    Can you help me please ? Than you :)

  •  1,339
    Marko replied


    Hello Nael,

    Thank you for reaching out to us.

    If your regular notifications do not work (not scheduled ones) we can help. If you have the issue with reminder scheduled notifications you need to reach out to your hosting provider so that they can take a closer look and set this up for you.

    For cron the best and easiest way to set this up is just to ask your hosting provider to set this, Since cron-reminder notifications are created and set on your server with your hosting provider,

    We can send you some instructions but if you are not familiar (even if you are) the best way is to ask them to set this up for you because it is their server and there can be several possibilities for each server.

    -

    Cron is not Amelia's feature cron is a WordPress feature. You can use cron with Amelia, but setting cron is not part of Amelia's support because it is not our feature. If your cron is not working and you cannot set it up, you need to contact your hosting provider so that they can set up cron for you.

    -

    We will try to help you as best we can in the meantime cron is a Linux utility that schedules a command or script on your server to run automatically at a specified time and date. A cron job is the scheduled task itself. Cron jobs can be very useful to automate repetitive tasks like in our plugin for notifications.

    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 jobs. 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:

    7810032183.png

    Then, go to Tools/Cron Events, and click on the "Cron Schedules" tab. In it, add a 15-minute interval:

    2487877415.png

    Then go back to the "Cron Events" tab and click on "Add new":

    9085918175.png

    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");
    2095163400.png

    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:

    7642938415.png

    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.

    We wish you all the best.

    Have a nice day. 

    Kind Regards, 

    Marko Davidovic
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  •  2
    Nael replied

    Than you for you reply :)

    I will try to reach my hosting provider and let you know when i will fix it . 

    Than you again :)

  •  1,196
    Uroš replied

    Hello Nael,

    As Marko is out of the office, I will fill in for him.

    We are looking forward to your update on this.


    Kind Regards, 

    Uros Jovanovic
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  •  2
    Nael replied

    Hi, 

    I still have the same issues :(

    It seems that Wordpress aren't agree with you bc they say is not there fault (https://wordpress.org/support/topic/error-with-php-3/). 

    I also have another issue now !  

    When setting up a Cron for my Amelia plug-in I get this error.

    PHP Code
     Line 1: Unclosed ‘(‘

    So can you help me please ? I start to feel tired of this

  •  1,196
    Uroš replied

    Hello Nael,

    Thank you for the update on this.

    You need to add the code like this:

    file_get_contents("yourURL");

    Please let me know if that works for you.


    Kind Regards, 

    Uros Jovanovic
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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