function sendNewsletter($showHTML, $mailingId, $listId, $receivers, &$message, $tags = null) { $list = lists::getOneList($listId); $mailing = xmailing::getOneMailing($list, $mailingId, '', $new, true); xmailing::_header('', '', $list->list_type, '', ''); $check = acajoom_mail::send($showHTML, $mailing, $receivers, $list, $message, $tags); if ($check) { xmailing::updateNewsletterSent($mailingId); } return $check; }