Problem with email in version OJS 2.4.8

problem in ojs 2.4.8: the application is sending e-mail with the sender’s name with the same addressee.
I found that the code MailTemplate.inc had some changes from the previous one. As shown below:

version 2.4.8
function send ($ clearAttachments = true) {
if (isset ($ this-> journal)) {
// If {$ templateSignature} and / or {$ templateHeader}
// Exist in the body of the message, replace with Them
// The journal signature; otherwise just pre / append
// Them. This is here to accomodate MIME-encoded
// Messages or other cases where the signature can not
// Just be appended.
$ Header = $ this-> Journal-> GetSetting ( ‘emailHeader’);
if (strstr ($ this-> getBody () ‘{$ templateHeader}’) === false) {
$ This-> setBody ($ header “\ n” $ this-> getBody ()…);
} Else {
$ This-> setBody (str_replace ( ‘{$ templateHeader}’, $ header, $ this-> getBody ()));
}

$ Signature = $ this-> Journal-> GetSetting ( ‘emailSignature’);
if (strstr ($ this-> getBody () ‘{$ templateSignature}’) === false) {
$ This-> setBody ($ this-> getBody () “\ n” $ signature…);
} Else {
$ This-> setBody (str_replace ( ‘{$ templateSignature}’, $ signature, $ this-> getBody ()));
}
version 2.4.4_1

function send ($ clearAttachments = true) {
if (isset ($ this-> journal)) {
// If {$ templateSignature} exists in the body of the
// Message, replace it with the journal signature;
// Otherwise just append it. This is here to
// Accomodate MIME-encoded messages or other cases
// Where the signature can not just be appended.
$ SearchString = ‘{$ templateSignature}’;
if (strstr ($ this-> getBody (), $ searchString) === false) {
$ This-> setBody (… $ This-> getBody () “\ n” $ this-> Journal-> GetSetting ( ‘emailSignature’));
} Else {
$ This-> setBody (str_replace ($ searchString, $ this-> Journal-> GetSetting ( ‘emailSignature’), $ this-> getBody ()));
}

$ EnvelopeSender = $ this-> Journal-> GetSetting ( ‘envelopeSender’);
if (empty ($ envelopeSender) && Config :: getVar ( ‘email’, ‘allow_envelope_sender!’)) $ this-> setEnvelopeSender ($ envelopeSender);
}

return parent :: send ($ clearAttachments);
}
}
I wonder if replacing the changes in version 2.4.8 by 2.4.4_1 this can solve the problem?

Can you give a specific example of what you are seeing in the email, and of what you are expecting?

I’m not sure I understand. One of the major changes between 2.4.4-1 and 2.4.8 is the support for SPF in emailing. This sometimes causes confusion when people first encounter it.

The code sample you highlight is not directly related to SPF enhancements, however, so you may be referring to another problem.

HI !

The email arrives to the recipient despite the message header does not show up correctly the mail who sent him.
The From comes with To.
Example:
from: Legal Journal [mailto: revista@xpto.gov.br]
Posted on: Thursday, March 10, 2016 17:08
Cc: Journal Juridica of Presidencia
Subject: [RJP] Evaluation Conclusion
the inves of Law Journal should be gmlessa@gmail.com
I beliave this can explain better the problem.

For SPF compliance, all messages are sent “From” the Journal Manager’s email address, on behalf of the actual sender, who is listed as the “Reply-To” address in the email. Does this match what you are seeing?