Upgraded to 2.4.6 and Submission Acknowledgement email is not sent anymore

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

Thank you Alec,

You are incredibly helpful on these forums! There are few projects where you get as quick and good answers as here. Huge kudos to you!

I will try logging the responses. When I logged the sent data, I noticed that the reply-to header was empty but set:
Reply-To: "" <>

I suspect that could be the issue.

Hi @daniels,

Actually, we recently discovered and fixed this issue; try applying the patch liked here:

(You’ll need to apply it in the lib/pkp subdirectory.)

Thanks for the kind words!

Regards,
Alec Smecher
Public Knowledge Project Team

I’m sorry for not reporting back sooner, but I’ve been on vacation for a week.

I applied the patch this morning and it looks like it solved the issue for us. Thanks again!

Regards,
Daniel Sandbecker