CMS v4 Unable to send email

Hi!

I managed to make the CMS send the notification. Comparing the EmailNotificationsTask.php file between versions 3 and 4, I noticed that version 4 does an extra validation on the recipient’s address.
Removing this validation (which does not exist in V3), the notifications started working again. I know this is not the correct way to solve the problem, could someone please guide me on how I can notify the team?

File edited in:
var/www/cms/lib/XTR/EmailNotificationsTask.php

Original code V4:

if ($this->checkEmailPreferences($notification)) {
$mail->addAddress($notification->email);
$mail->addAddress($notification->email);
}

Edited to:
$mail->addAddress($notification->email);

1 Like