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.
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
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
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
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
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 …
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