Hello,
I send emails with my own sender domain via a mail server with a different domain. This worked perfectly for years until summer 2025.
Now, emails that are not sent from the primary address are increasingly being rejected.
I need the following option:
To: post@irmgard-riehl.de
From: "Picture World" <otto.riehl@riehl-partner-web.de>
Reply-To: Otto Riehl <post@otto-riehl.de>
With the help of this forum, I have made the following adjustment in:
../piwigo/inclusive/functions_mail.inc.php
// $mail->addReplyTo($from['email'], $from['name']);
$mail->addReplyTo('post@otto-riehl.de', 'Otto Riehl');
Here is a screenshot:
https://web-upload.ashampoo.com/BZ4AEOt … QuB5fk93Mo
Works perfectly.
After every Piwigo update, I will check whether the change is still in place. If not, I will change it again.
Could I also make such an adjustment using LocalFiles Editor?
Offline
Similar discussion here:
https://piwigo.org/forum/viewtopic.php?id=29895
Offline
Hello,
From the quoted post, I understand that LocalFile Editor can be used to change the email address for the contact form.
I don't know how to implement this for
“functions_mail.inc.php” and the line
“ $mail->addReplyTo($from[‘email’], $from[‘name’]);”.
To ensure that the change remains effective even after a Piwigo update, I would appreciate instructions in LocalFile Editor.
Can someone please help me and tell me what I need to enter?
Thank you.
Offline
In order to replace the core Reply-To using the LocalFiles Editor you could use the 'before_send_email' event.
Since that trigger reference happens after the original addReplyTo() function in function_mail.inc.php you will need to reset the Reply-To addresses first (otherwise you will have both) and then use the same addReplyTo function call you were already using.
On my server I was able to add something like the following in the LocalFiles Editor personal plugin (obviously change the email address and name). The Personal Plugin also needs to be activated on the plugins page.
add_event_handler('before_send_mail', 'personal_replace_reply_to');
function personal_replace_reply_to($result, $to, $args, &$mail)
{
$mail->clearReplyTos();
$mail->addReplyTo('address@example.org', 'Name');
return $result;
}Offline
moberley wrote:
Personal Plugin
Works perfectly.
Thank you very much.
This forum offers excellent help. This help in the forum makes the Piwigo application a valuable tool. Praise and recognition to all those involved.
Offline