chamilo / chamilo-lms

Chamilo is a learning management system focused on ease of use and accessibility
https://chamilo.org
GNU General Public License v3.0
811 stars 481 forks source link

Title: Notification Email Sender Issue After Upgrade to Version 1.11.28 #5920

Open Bavarianspirit opened 1 week ago

Bavarianspirit commented 1 week ago

After recently upgrading our portal from version 1.11.16 to 1.11.28, we’ve noticed an issue with the notification emails sent to admins when a participant completes a test. Previously, these emails were sent from the portal's email address, but now they are sent from the participant's registered email address. The reply-to address, however, remains set to the portal’s email address.

This change has led to many of these emails being marked as spam. Is it possible to revert to the original configuration, or is there a new setting in the updated configuration files that might control this behavior? I checked the config files but couldn't locate any relevant option.

Registration emails and similar notifications are still sent correctly from the portal's address; the issue only affects completion notifications.

Example from version 1.11.16:

Subject: You have a new message from [Participant Name]
Date: 2024-10-18 21:11
From: "portal@example-portal.com" portal@example-portal.com
To: [Admin Name] admin@example.com
Reply-To: [Participant Name] participant@participant.com

Example from the new version:

From: [Participant Name] participant@participant.com
Sent: Tuesday, November 12, 2024 10:44
To: [Admin Name] admin@example.com
Subject: You have a new message from [Participant Name]
Bavarianspirit commented 1 week ago

Can someone tell me in which PHP file the email generation for completed tests in the learning paths is done?

Bavarianspirit commented 23 hours ago

It seems that this commit introduces the issue:
https://github.com/chamilo/chamilo-lms/commit/50dfee4881c4432b24ceb9cc467069eee0d8adbe

It looks like:
'sender' => $senderUserIri,
should be:
'sender' => $admin,