Reminder emails not being received

I have setup email with SMTP and the test email is received. I can compose an email and that mail is sent and received. When I create a meeting, add a reminder and click on “Save & Send Invites”, that email is also received. However, I don’t get any automated emails for the reminder that has been setup for the meeting.

In the Admin → System → Scheduler, the “Run Email Reminder Notification” is active with internal “as often as possible”

I have additionally setup a cron in cpanel:
usr/local/bin/ea-php80 /home/domain/public_html/suitecrm/public/legacy/cron.php > /dev/null 2>&1
to run every 5 minutes.

No emails from any notifications so far.

Would appreciate any help.

Check Admin / Outbound email / system account settings.

Everything seems ok here. I can send a test email from here. Outbound configuration has the from name and from address.

If you run this from the command-line

php -i | grep timezone

Does the timezone appear correctly? If not, change it in php.ini. To find the correct php.ini use

php -i | grep php.ini

The timezone of the server is set to UTC and appears correctly. For the SuiteCRM users, the correct timezone is adjusted in their profile to +5:30.
Even if the timezone is incorrect, as long at the date is correct, shouldn’t a reminder email arrive at some time of the day? There is no email.

I am not sure what the behaviour would be with an incorrect time zone, it depends on how the code is written. If it has some condition to select events that are in the future, and exclude those in the past, I guess an incorrect setting could make every reminder appear to be in the past.

I am just speculating, but try it with the correct timezone setting. You should have that any way, otherwise all your Scheduler settings won’t make any sense.

I’ve tested this, it doesn’t seem to be a timezone issue. Even with the right timezone, reminder emails are not being sent.

Have you checked here in your user profile just to make sure:

Also, have you tested that your system email works and not going to spam?

Deliverability test your “system” outbound email.

Also, just because your cron is enabled and the job is active, doesn’t mean it’s running check in the log below to see if it is actually running and running successfully.

Also, if you tested your system email once and went back in and saved, sometimes depending on the version it wipes out the password and/or the ssl/tls setting. I would re-enter and retest and re-save, just to be sure.

There’s also a problem where outbound email test fine, then when it saves, it doesn’t actually save the password (bug) and then doesn’t actually work. Test as a user trying to send as system from “compose” if that works you know the system outbound is working.

Those are things I’d check.

Thank you for replying.

The system is sending emails when composed, or when a meeting is setup, it sends an invite, and the test email works too, so the email setup is correct. The user profile settings are ok.

I’m not sure about cron, the schedule is configured and I’ve done the setting in my cpanel to run cron every 5 minutes. Is there a way to verify that its running?

Also, the server time is set to UTC, whiile the users locale is set to UTC +5:30, does that effect these meeting reminders?

check they are actually running and running successfully:

Thank you for sharing this image. The job log is empty.

(1) When I edit this job, there is an option for Job URL and that is empty. Should it have anything in it?

(2) I am on a server that has cpanel, in which I have setup a cron: /home/server/public_html/suitecrm/public/legacy; php -f cron.php > /dev/null 2>&1
but i’m not sure that is running either.

If I directly call the cron.php file in a brower, I get “cron.php is CLI only.”
Is there a way I can manually execute the cron.php or do something else to make it run?

Sounds like your cron jobs aren’t running. Check other jobs in the scheduler to confirm. If no jobs are running (there are no job logs) you’ll be pretty certain you cron jobs is not running.

That cron job doesn’t look right. Uually it’s like this:

  /usr/local/bin/php -q /home/YOUR_HOSTING_PATH/public_html/YOUR_INSTALL_DIRECTORY/cron.php > /dev/null 2>&1

That’s for 7 so for suitecrm 8, the path to cron is modified slightly.

Also, you have to ensure that the current user is allowed to run cron.

You have to make sure the user is added to cron users in config.php file. below is example of adding xxzzyy user:

    'allowed_cron_users' => 
    array (
      0 => 'www-data',
      1 => 'xxzzyy',
    ),

OK so the cron seems to have just started running. I think my cron setting in cpanel were not correct, and fixing that as per your suggestion made it work. Thank you agian.

However, the job logs show result as failure for reminder notifications, while it shows success for workflow tasks and report generation scheduled tasks. So I’m still not getting reminder emails.

Any suggestions on how to figure out the reason for failure?

The error log shows (Check Inbound Mailboxes) failed in CRON run. Will fish around to solve that.

There was a problem with inbound email configuration, which I have resolved.
I’ve started receiving reminder emails, so that problem is solved!

I have enabled debug level logs but I can’t see any fatal or error that could be effecting the cron. The Email Reminder Notifications schedule result is still a failure though. The log shows [FATAL] Job 74b70574-6686-21d8-f7b6-649c6338ad95 (Run Email Reminder Notifications) failed in CRON run

In your cron jobs remove the > /dev/null 2>&1 part and you’ll get an output of EVERY cron run, success or failure via email. This will usually give you what you need to solve the problem.

From experience it’s one of couple things:

  1. user doesn’t have permission to run cron jobs (cron users in config.php)
  2. You’re running out of memory. Cron jobs run in the root directory of cpanel, so ensure it has like 512MB minimum.
    3)You’re running an unsupported PHP Version in the root. The root in cpanel can be different than the subdirectory you’ve installed SuiteCRM.