Email failure with ojs 3.3

Recently we encountered a technical issue. We have an OJS website in which we send invitation letter to article reviewers through it. In the current few weeks, all emails sent via website are failed and failure notification is as follows:
“There was a problem sending an email message, please try again later or contact your system administrator.”

Simultaneously, a failure notification from mail delivery system is emailed to us as below:

Mail failure - rejected by local scanning code

A message that you sent was rejected by the local scanning code that
checks incoming messages on this system. The following error was given:

“This message was classified as SPAM and may not be delivered”

We contacted our webmail service provider, they claimed there is no problem associated with on the server email and probably the issue is related to website. Your support and assistance would be greatly appreciated.
Thank you!
Masoume

7eb90e92-cae2-4067-8e83-7b2ddfd98e3f

Hi @masoume_tm,

Are you using SMTP or the default PHP mail() function (you can check in your OJS config)?
According to the message, there should be an associated error in the PHP log, can you check it? Also, can you clarify why your webmail service provider rejects the email delivery?

i am having the same issue and i have been messaging on this platform for about 9 days and no one seems to look into the issue, the error notificiation i get is as follows:
“There was a problem sending an email message, please try again later or contact your system administrator.”

on my error log i see the following error:
[22-Jun-2022 01:42:33 Africa/Lagos] Invalid address: (From): root@localhost
[22-Jun-2022 01:57:02 Africa/Lagos] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub
[22-Jun-2022 01:57:04 Africa/Lagos] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub
[22-Jun-2022 01:57:06 Africa/Lagos] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub
[22-Jun-2022 01:57:08 Africa/Lagos] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub
[22-Jun-2022 01:57:10 Africa/Lagos] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub
this is when a user try to submit an article for publication.

below is the error log when i sent out notification:
[22-Jun-2022 07:24:32 Africa/Lagos] PHP Fatal error: Uncaught Error: Call to a member function getLocalizedTitle() on null in /home/wnjmscom/public_html/journal/lib/pkp/controllers/grid/notifications/NotificationsGridCellProvider.inc.php:157
Stack trace:
#0 /home/wnjmscom/public_html/journal/lib/pkp/controllers/grid/notifications/NotificationsGridCellProvider.inc.php(44): NotificationsGridCellProvider->_getTitle(Object(Notification))
#1 /home/wnjmscom/public_html/journal/lib/pkp/classes/controllers/grid/GridCellProvider.inc.php(56): NotificationsGridCellProvider->getCellActions(Object(Request), Object(GridRow), Object(GridColumn))
#2 /home/wnjmscom/public_html/journal/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1104): GridCellProvider->render(Object(Request), Object(GridRow), Object(GridColumn))
#3 /home/wnjmscom/public_html/journal/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1011): GridHandler->_renderCellInternally(Object(Request), Object(GridRow), Object(GridColumn))
#4 /home/wnjmscom/public_html/journal/lib/pkp/classes/controllers/grid/Gri in /home/wnjmscom/public_html/journal/lib/pkp/controllers/grid/notifications/NotificationsGridCellProvider.inc.php on line 157

my SMTP setting is as follows:

;;;;;;;;;;;;;;;;;;
; Email Settings ;
;;;;;;;;;;;;;;;;;;

[email]

; Use SMTP for sending mail instead of mail()
smtp = On

; SMTP server settings
smtp_server = mail.wnjms.com.ng
smtp_port = 25

; Enable SMTP authentication
; Supported smtp_auth: ssl, tls (see PHPMailer SMTPSecure)
smtp_auth = smtp
smtp_username = journal@wnjms.com.ng
smtp_password = 0000000000
;
; Supported smtp_authtype: RAM-MD5, LOGIN, PLAIN, XOAUTH2 (see PHPMailer AuthType)
; (Leave blank to try them in that order)
smtp_authtype =

; The following are required for smtp_authtype = XOAUTH2 (e.g. GMail OAuth)
; (See Using Gmail with XOAUTH2 · PHPMailer/PHPMailer Wiki · GitHub)
; smtp_oauth_provider = Google
; smtp_oauth_email =
; smtp_oauth_clientid =
; smtp_oauth_clientsecret =
; smtp_oauth_refreshtoken =

; Enable suppressing verification of SMTP certificate in PHPMailer
; Note: this is not recommended per PHPMailer documentation
smtp_suppress_cert_check = On

; Allow envelope sender to be specified
; (may not be possible with some server configurations)
allow_envelope_sender = On

; Default envelope sender to use if none is specified elsewhere
default_envelope_sender = journal@wnjms.com.ng

; Force the default envelope sender (if present)
; This is useful if setting up a site-wide no-reply address
; The reply-to field will be set with the reply-to or from address.
force_default_envelope_sender = On

; Force a DMARC compliant from header (RFC5322.From)
; If any of your users have email addresses in domains not under your control
; you may need to set this to be compliant with DMARC policies published by
; those 3rd party domains.
; Setting this will move the users address into the reply-to field and the
; from field wil be rewritten with the default_envelope_sender.
; To use this you must set force_default_enveloper_sender = On and
; default_envelope_sender must be set to a valid address in a domain you own.
force_dmarc_compliant_from = On

; The display name to use with a DMARC compliant from header
; By default the DMARC compliant from will have an empty name but this can
; be changed by adding a text here.
; You can use ‘%n’ to insert the users name from the original from header
; and ‘%s’ to insert the localized sitename.
; dmarc_compliant_from_displayname = ‘%n via %s’

; Amount of time required between attempts to send non-editorial emails
; in seconds. This can be used to help prevent email relaying via OJS.
time_between_emails = 3600

; Maximum number of recipients that can be included in a single email
; (either as To:, Cc:, or Bcc: addresses) for a non-privileged user
max_recipients = 10

; If enabled, email addresses must be validated before login is possible.
require_validation = Off

; Maximum number of days before an unvalidated account expires and is deleted
validation_timeout = 14

1 Like

SMTP authentification should be either ssl or tls.

And I would double-check the port

Double posting: Issues with sending email (3.3.0-11) - #5 by Amolowe2021

1 Like