Cant send mail from inside OJS

OJS 3.5.0.4 installed via Softaculous on HostGator/cPanel.

Problem: Cannot send mail . happens with sending invites but also links such as “forgot password”. the emails are never received.

my config file has the correct email settings:

restful_urls = Off
disable_path_info = On
default email = smtp
smtp_server = mail.pccmreports.com
smtp_port = 465
smtp_auth = ssl
job_runner = On
process_jobs_at_task_scheduler = Off

I also notice that role invitations are created in the invitations table.but I dont get the email.

In the error logs I see things like this:

Error log:
Undefined property: PKP\invitation\invitations\userRoleAssignment\payload\UserRoleAssignmentInvitePayload::$emailSubject
Undefined property: PKP\invitation\invitations\userRoleAssignment\payload\UserRoleAssignmentInvitePayload::$emailBody
Undefined array key “invitation_id” in lib/pkp/classes/invitation/models/InvitationModel.php on line 95

  • Resetting all email templates did not fix it.
  • Tested PHP 8.3 and PHP 8.2; same errors.
  • SMTP settings appear correct and webmail can send externally.

Thank you and any additional clarifications please let me know.

additional info in my config:

default = smtp

sendmail_path = "/usr/sbin/sendmail -t -i"

smtp = On
smtp_server = mail.pccmreports.com
smtp_port = 465

smtp_auth = ssl
smtp_username = xxx@pccmreports.com
smtp_password = xxx

Dear @pccm
If you can successfully send emails from your own computer using Outlook or a similar program with the email account registered in the ojs config file, I can help you with how to configure DKIM, SPF, and DMARC settings.

Since these are all email server-level settings, could you please specify whether the server is under your control or a shared hosting account?
Important Note: Your email server ip (192.254.185.xxx) is listed on block list of UCEPROTECTL3. So, you may start with contacting them to remove your server ip from blacklist.
https://www.uceprotect.net/en/rblcheck.php

Best regards,
Dr Uğur Koçak