Issue Bug Closed

#55922Bug with multiple e-mail adresses in scheduler task

Online Now! GmbH 02/12/14, 14:02 updated 10/02/18, 12:09

Description

There is a small bug in the scheduler task for the linkvalidator. You can enter multiple receipients seperated with comma but sending to them does not work. The mail object gets the original value from the input field with the commas as parameter and not the validated array with the adresses.

Source: typo3/sysext/linkvalidator/classes/tasks/class.tx_linkvalidator_tasks_validator.php ( Line: 458 )

if (is_array($validEmailList) && !empty($validEmailList)) {
    $mail->setTo($this->email);
} else {
    $sendEmail = FALSE;
}

This should be changed to:

if (is_array($validEmailList) && !empty($validEmailList)) {
    $mail->setTo($validEmailList);
} else {
    $sendEmail = FALSE;
}

Reviews 1