Okay
  Public Ticket #2976928
Email Notification
Closed

Comments

  • Parag Dighe started the conversation

    I am trying to evaluate the Amelia plugin for appointment bookings. Before I purchase the plugin, I wanted to test the plug in on my Localhost. The appointments and other features work the way we would like to but I am not able to generate email notifications. On the LocalHost, I have tried PHP and WP Mail, and then go to Notifications, and try to send a Test Email. I get a message that the email was sent successfully, but the recipient never receives the email.

    Please let me know what am I missing.

  •  1,564
    Marko replied

    Hello Parag,

    Thank you for your interest in our product.

    An issue with email notifications could be caused by several reasons:

    1. Your website has a PHP version of less than 7.
    2. The credentials are not correct.
    3. There's something else blocking the notifications from being sent.

    When you check for these points and if still, it is not working you need to check with your hosting.

    If you have any more questions please feel free to open another ticket.


    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

  • Parag Dighe replied

    Thanks for your reply. I haev PHP version 8.0.14. I am running the website on the localhost on my computer using XAMPP. So no issues with the hosting. When I use WP Mail or PhP Mail, it does not have any place in the Notification settings to enter the credentials.

    I have also tried this on the website hosted on a server and getting the same issue even when using SMTP. I got the SMTP settings validated by the Hosting Provider, and they confirmed nothing from their end blocking the emails and asked me to work with the Plugin developer.

    I liked all the features of this plugin and if I can have this notification to work, will subscribe!

  •  1,564
    Marko replied

    Hello Parag,

    Please provide me a temporary WP-admin (administrator) user 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 parties. 

    You can write credentials here just check PRIVATE Reply so nobody can see them except us.

    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

  •   Parag Dighe replied privately
  •  1,564
    Marko replied

    Hello Parag,

    This kind of issue can occur when Amelia is not updated to the latest version. You said that you want to test Amelia only and when we went to your site we saw that you have 4.4 version which is our second to the last version and we don't see that you have the ability to update.

    We tried but can't find the license in our system associated with this email address, please open the new ticket with the email from which you bought the license. When you contact us from the email to which the license is associated, we will be able to check in the system why you cannot update the license.

    If you have purchased a license through envato then you have access to our support for only 6 months to get new access tosupport you must contact envato.

    In any case, we saw that you do not have any notifications stored in the template, only scheduled notification and they are done via cron job. So please check if you set up the cron properly.

    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.

    I hope that helps.



    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