- Issue created by @ramzypro
- π¦π«Afghanistan mustardman
I am also having this problem. Will try that suggested fix.
- π¨π¦Canada johnjw59@gmail.com
Yup, this is an issue!
I think we should keep the call to
$mailer->setFrom()
as-is though; if a Reply-To header is not present, the default should be whatever the "From" address is. Therefore, my proposed solution is to just clear out any set Reply-To headers before we explicitly add them. Patch doing just that is attached. - πΊπΈUnited States ramzypro
We replaced what we did with the patch in #4 and the issue has not returned. I can confirm the patch works.
- Status changed to RTBC
about 1 year ago 7:27pm 30 October 2023 - last update
about 1 year ago 6 pass - πΊπΈUnited States steveganz
We've had the patch in #4 deployed in our production environment for the last 30 days, sending thousands of emails each week successfully with Reply-To header sets correctly.
- πΊπΈUnited States jenlampton
This almost worked for me, but I had multiple reply-tos. I was able to duplicate similar code used for cc, bcc, and to, that handles multiple addresses, in addition to adding this change.
case 'reply-to': $mailer->ClearReplyTos(); $rtrecipients = explode(',', $value); foreach ($rtrecipients as $rtrecipient) { $replyto_comp = $this->_get_components($rtrecipient); $mailer->AddReplyTo($replyto_comp['email'], $replyto_comp['name']); } break;