Hi!
I am sending an emails to all email-subscribed thread watchers:
if($watcher->email_subscribe)
{
$mailParams = [
'solver' => $actionCaller,
'thread' => $thread,
'forum' => $thread->Forum
];
\XF::app()->mailer()->newMail()
->setToUser($watcherUser)...