Skip to content
Snippets Groups Projects
Commit 1bd37820 authored by JediKev's avatar JediKev
Browse files

collab: @localhost Mailer Error

This addresses issue 4370 where Users responding to tickets via Client
Portal triggers a “Failed to add recipient: @localhost” Mailer Error in the
osTicket Logs. This is due to the `notifyCollaborators()` function that
lacks a check for an empty mailing list.
parent 53344a57
No related branches found
No related tags found
No related merge requests found
......@@ -1660,6 +1660,9 @@ implements RestrictedAccess, Threadable, Searchable {
unset($recipients[$key]);
}
if (!count($recipients))
return true;
//see if the ticket user is a recipient
if ($owner->getEmail()->address != $poster->getEmail()->address && !in_array($owner->getEmail()->address, $skip))
$owner_recip = $owner->getEmail()->address;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment