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
Email Delivery Reply To Address Issue
Re: Email Delivery Reply To Address Issue
I was able to put a fix into the code to fix my issue
Cheers ... Bryan
Cheers ... Bryan
Re: Email Delivery Reply To Address Issue
Hi Bryan,
How did you fix this?
TIA
Peter
How did you fix this?
TIA
Peter
Re: Email Delivery Reply To Address Issue
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
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 (12.94 KiB) 2426 mal betrachtet
Re: Email Delivery Reply To Address Issue
This did the trick!
Thnx Bryan
Thnx Bryan
Re: Email Delivery Reply To Address Issue
You're welcome - glad it worked for you
Cheers
Bryan
Cheers
Bryan