Upgraded to 2.4.6 and Submission Acknowledgement email is not sent anymore

I have changed to
$mail->setReplyTo(null);

and yes the error re occured

Selamlar,
M. Cüneyt Birkök

www.J-HumanSciences.com

Hello everyone,

We have the same problems with email notifications. When an author submits an article, the author is notified but the editor does not receive (is correctly setup in 3.6). Reviewers and copyeditors not receiving communication also, and automatic reminders don’t work. if I send mail directly to a person, it works without a problem

We change AuthorSubmitStep5Form.inc.php line 184 according to @ctgraham and it works again but it was also necessary to change UserManagementForm.inc.php, CreateReviewerForm.inc.php, CommentForm.inc.php, EditCommentForm.inc.php, ReviewReminder.inc.php, RegistrationForm.inc.php in the same way (turning back according: *8085* SPF email tune-ups · pkp/ojs@2a4f677 · GitHub). Everything works again but now we have problems with mail delivery to Gmail.

Please verify that SPF email tune-ups work correctly. If the notifications to Gmail do not work, we will have to revert to Version 2.4.5

Thanks,

Jorge Polanco
Universidad de Costa Rica

Hi @jorgelpolanco,

Unfortunately a lot of the specifics depend on your mail server’s configuration, and it’s impossible for OJS to know why a message is not being delivered as the rejection will typically occur after OJS has passed the message off to the mail server. The best way to debug this is to get access to your mail server’s log to see whether the message was rejected, and why.

Regards,
Alec Smecher
Public Knowledge Project Team

The testing here points to the failure being caused by either:

  • A missing “From” address
    or
  • A value of NULL in the “Reply-To”

The from address should default to either the Site Admin or Journal Admin per:

So my guess is this check:

Because getReplyToString() will return NULL on a NULL Reply-To.

If someone with the problem can test either changing the return value of getReplyToString() or the check within send(), that could confirm or disprove this theory.

Unfortunately, this will be my last contribution on this thread for a while, as I’m headed to a conference this next week.

I was following this thread and was wondering the status of this issue. We have a an issue with reviewer emails where the replyto is null. We have a number of journals that are not happy with this SPF rules.

Thanks,
Edward

Hi @EdwardDavid,

See my reply on the other thread:

Regards,
Alec Smecher
Public Knowledge Project Team

Yes the problem stil exist

24 Kasım 2015 Salı tarihinde, EdwardDavid pkp@forum.pkp.sfu.ca yazdı:

Hi @birkok,

The SMTP configuration you tried for Gmail looks incorrect, by the way. Have a look at:
http://pkp.sfu.ca/wiki/index.php?title=Using_gmail_SMTP

Regards,
Alec Smecher
Public Knowledge Project Team

I did the recommended configuration but never worked.
I actually prefer ojs mail system. Because from address is very important
function.

But the other problem (not sending submission acknowledge mail) still exist

Our ojs
Current version is

2.4.7.1 (October 24, 2015 - 10:52 AM)

Selamlar,
M. Cüneyt Birkök

www.J-HumanSciences.com

Hi @birkok,

Is it only that email that isn’t working?

Regards,
Alec Smecher
Public Knowledge Project Team

Yes our problem is that the submission acknowledge mail is not send when a
submission occures.
I have replace the attached file, then acknowledge mail is send.
The attached (working) file is from ojs v.2.4.5.0 (or so, I am not sure)
current ojs I am using is v2.4.7.1

Selamlar,
M. Cüneyt Birkök

www.J-HumanSciences.com

Hi @birkok,

If only the submission acknowledgement email is not being received, the chances are very good that the delivery is failing somewhere at or beyond your mail server. You’ll need to see if you can check your mail server’s delivery logs; whether you can access these, and where you find them, will depend on your server’s configuration.

Regards,
Alec Smecher
Public Knowledge Project Team

I have been visiting this forum for months and no clue,
All emails work except for the notification mails
I’m on 2.4.7.1 On PHP 5.4 apache 2.2 mysql 5.5 on linux

Replace the file with old versiyon

6 Aralık 2015 Pazar tarihinde, Dr_Saqr_Jr pkp@forum.pkp.sfu.ca yazdı:

Hi @birkok,

I wouldn’t recommend replacing OJS code with a copy of the same file from an older version. If it did work, can you confirm what file you replaced, and what version it came from?

Regards,
Alec Smecher
Public Knowledge Project Team

Of course.
I have replaced with last working file.

The file is:
classes/author/form/submit/AuthorSubmitStep5Form.inc.php

And last working version is: 2.4.6.0

I have also attached working file

Selamlar,
M. Cüneyt Birkök

www.J-HumanSciences.com

Hi @birkok,

The file classes/author/form/submit/AuthorSubmitStep5Form.inc.php is identical between OJS 2.4.6 and OJS 2.4.7-1. Are you sure you didn’t change anything else?

Regards,
Alec Smecher
Public Knowledge Project Team

So It must be 2.4.5.0 I didn’t change any thing. I just replaced previous
version ant it worked.
Sorry I couldn’t remember which version it was.

Selamlar,
M. Cüneyt Birkök

www.J-HumanSciences.com

We experience this issue as well. This line in the apache log seems to be related to the issue:
OJS SMTPMailer: Did not receive expected 250 (3)

I traced it back to lib/pkp/classes/mail/SMTPMailer.inc.php and added a tracing error_log statement, and it seems that other kind of emails (I tested with direct e-mail via the enrolled users list) reaches the same code and works, receiving the expected 250 (no idea what that means) and disconnects gracefully.

I understand that this could be something with the smtp server setup as well as something with the data OJS tries to send, but as I have little knowledge on the smtp-protocol I would appreciate some input on what to ask the sysadmins to look for …

Hi @daniels,

I suspect your SMTP server is rejecting the message for a reason that it may or may not explain. I’d suggest logging what the server responds with instead of the expected 250. SMTP response codes are documented e.g. at SMTP reply codes. You might also be able to find details in your mail server’s log, but you may or may not have access to that depending on your ISP.

Regards,
Alec Smecher
Public Knowledge Project Team