Notification by mail always uses the webmaster email address #414

Open
opened 2026-10-04 23:57:08 +02:00 by adam · 4 comments
Owner

It appears that whenever one uses the "notification by mail" feature from the administrator panel, the sent email always uses the webmaster's address as its sender.

I'm not sure if this is was configured like this by design or not, but in my use case, the webmaster contact address is not one from the domain Piwigo is installed on and thus such emails would always fail all authenticity checks by other mail servers, so I would definitely appreciate if it could still be configured. And if it is indeed a bug, the change seems to be trivial: just take $conf['mail_sender_email'] or an equivalent new setting into account at admin/include/functions_notification_by_mail.inc.php#L201.

It appears that whenever one uses the "notification by mail" feature from the administrator panel, the sent email always uses the webmaster's address as its sender. I'm not sure if this is was configured like this by design or not, but in my use case, the webmaster contact address is not one from the domain Piwigo is installed on and thus such emails would always fail all authenticity checks by other mail servers, so I would definitely appreciate if it could still be configured. And if it is indeed a bug, the change seems to be trivial: just take `$conf['mail_sender_email']` or an equivalent new setting into account at [`admin/include/functions_notification_by_mail.inc.php#L201`](https://github.com/Piwigo/Piwigo/blob/master/admin/include/functions_notification_by_mail.inc.php#L201). <!-- github-sync-id:139334250 -->
Author
Owner

you can also activate plugin Protect Notification to avoid using the webmaster email address.

I agree that it could be nice to have a specific setting to set the sender distinct from the webmaster email address.

you can also activate plugin Protect Notification to avoid using the webmaster email address. I agree that it could be nice to have a specific setting to set the sender distinct from the webmaster email address. <!-- github-comment-id:195285318 -->
Author
Owner

Thank you for bringing that plugin into my attention, it'll do enough to fit my needs for now.

Thank you for bringing that plugin into my attention, it'll do enough to fit my needs for now. <!-- github-comment-id:196055236 -->
Author
Owner

I just ran into this issue as well (took me a while to figure out why my notifications always ended up in the spam folders everywhere :D). In my case, I could simply set a suitable address for the webmaster account but I think in general, it would be nice if these notification mails would also use $conf['mail_sender_email'] (that's the behaviour I expected).

I just ran into this issue as well (took me a while to figure out why my notifications always ended up in the spam folders everywhere :D). In my case, I could simply set a suitable address for the webmaster account but I think in general, it would be nice if these notification mails would also use `$conf['mail_sender_email']` (that's the behaviour I expected). <!-- github-comment-id:1711829290 -->
Author
Owner

Hey, new comer to Piwigo and same feeling about this.

$conf['mail_sender_email'] is the value I expected for notification, not the webmaster mail

Hey, new comer to Piwigo and same feeling about this. $conf['mail_sender_email'] is the value I expected for notification, not the webmaster mail <!-- github-comment-id:3135768766 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#414