Email Delivery Reply To Address Issue

If you aren't speaking german, you can ask for support or post your request here.
Antworten
bryan
Beiträge: 33
Registriert: 30. Sep 2017, 20:58

Email Delivery Reply To Address Issue

Beitrag von bryan »

Hi there:

We are testing a new set up at version 4.03 level for a new implementation - in Preferences/Email Delivery we have set the
Sender Address: Noreplies@ourdomain.ca
Sender Name: Admin

Since we do not want the recipient(s) to see the sender's Email actual address.

However, in testing once I receive a email sent by a member, I can click Reply and will be taken to a reply email in fact showing the sender's actual address. If I look in the header/properties of the received email, the Sender's actual address is traveling with the email in the Reply-To: address field. To keep the Sender's actual address hidden, we need it to be the same as the From Address (or omitted).

I see that it might be scheduled as an enhancement in Version 4.1, but I need to put a "fix" into the code now.

I think the change I need to make is in Email.php. However, any changes I guess at – since I don’t have much coding experience – don’t seem to work.

Any advice on how to change the code and make a hardcoded fix until it is in a new release would be very much appreciated.

Thanks!!

Bryan
bryan
Beiträge: 33
Registriert: 30. Sep 2017, 20:58

Re: Email Delivery Reply To Address Issue

Beitrag von bryan »

I was able to put a fix into the code to fix my issue

Cheers ... Bryan
pboosten
Beiträge: 4
Registriert: 31. Okt 2023, 21:47

Re: Email Delivery Reply To Address Issue

Beitrag von pboosten »

Hi Bryan,

How did you fix this?

TIA

Peter
bryan
Beiträge: 33
Registriert: 30. Sep 2017, 20:58

Re: Email Delivery Reply To Address Issue

Beitrag von bryan »

Hi there

The code in email.php in adm_programs/system/classes will expose the members address if they try to reply to an email, they receive even though it says “No Reply@xxxxx.xx”. This may be fixed in a future release. However, until that time, a temporary change in the code has been made and must be replicated into the program subsequent to an upgrade. The code in email.php should look like that shown below, starting at or around line 347.

// Code has been modified for within this Try section - needs to be re-implemented if not fixed ……
// and not to a domain email, so use the one set in Preferences
$fromName = $gSettingsManager -> getString('mail_sendmail_name');
$fromAddress = $gSettingsManager -> getString('mail_sendmail_address');
$this -> addReplyTo($fromAddress, $fromName);
$this -> setFrom($fromAddress, $fromName);

I hope this works for you
Bryan
Dateianhänge
Email Code Fix.png
Email Code Fix.png (12.94 KiB) 3608 mal betrachtet
pboosten
Beiträge: 4
Registriert: 31. Okt 2023, 21:47

Re: Email Delivery Reply To Address Issue

Beitrag von pboosten »

This did the trick!

Thnx Bryan
bryan
Beiträge: 33
Registriert: 30. Sep 2017, 20:58

Re: Email Delivery Reply To Address Issue

Beitrag von bryan »

You're welcome - glad it worked for you

Cheers

Bryan
Antworten