Okay
  Public Ticket #2815885
email notification
Closed

Comments

  • Tiphaine started the conversation

    hello, 

    I am testing the basic version (paid version) of Amelia pro and i don't know why, I don' t receive the emails notifications (nor clients or employees) when I booked an event.

    Even doing the test email, i don't receive it. 

    Could you please help me ?

  • [deleted] replied

    Hi Tiphaine,

    thank you for reaching out to ussmile.png

    Issue with email notifications could be caused by several reasons:

    1. Your hosting provider is blocking all 3rd party settings, and only allowing their SMTP (or other) settings. 2. Your website has PHP version less than 7 3. The credentials are not correct 4. There's something else blocking the notifications from being sent. 5. If you're using Gmail, please make sure "Allow less secure apps" is enabled.

    Please check these points, and let me know if you were able to resolve the issue. If you're still not able to resolve the issue, we'll need to remote into your website, and see what's going on.


  •   Tiphaine replied privately
  • [deleted] replied

    Hi Tiphaine,

    thank you for the kind reply, and for the credentials (you can delete this test user that you made for me)smile.png

     I apologize for the later reply as we don't work on weekends.

    It seems that you have been using PHP Mail; this option is selected by default for users that do not want to configure other mail services.

    We strongly recommend changing mail service setting to SMTP or Mailgun because email that is sent with PHP Mail generally gets flagged as spam by mail servers and also can take some time to send.

    I changed the setting to SMTP and tested it with my credentials; it worked.

    Please switch to SMTP or at least WP mail and try again.


  • Karim Naar replied

    Hello Ivana,


    Trust you are doing well. 

    Sorry to contact you through this public ticket for a different topic. I opened a private ticket last week and I haven't received any feedback yet (PRIVATE TICKET #2816702). This is regarding the WpDataTables plugin.

    I would highly appreciate it if someone from your team would look at the issue I raised.

    Thanks and Regards

    Karim

  • Tiphaine replied

    Hello Ivana, 


    Thank you for your help, it works ! I had to turn on "less secure apps" for gmail but this sounds good.

    Please, could you help me with the reminder mail notification ? 

    I do upload "WP control" but I want a reminder the day before the event, 24h before. 

    Could you tell me the following steps as the cron names I should use ?

    Thank you for your help

  • [deleted] replied

    Hi Tiphaine!

    Also, hello Karim - my colleague responded to your ticket, I apologize for the delay - please check itsmile.pngOur response time is around 24 hours, however, we don't work on weekends so you can expect the replies from Friday to arrive Monday morning.

    Tiphaine, for the cron, 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. For the names, you can name it just like the 15 minute one: for internal name every_24_hours and display name Every 24 hours.

    Also, for the general setting 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:

    7810032183.png

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

    2487877415.png

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

    9085918175.png

    Below it, select "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.

    I hope that helps.