hi thanks for your reply . yes there were multiple edit options , 10 in total . the test failed on just one .
find
// Don't sent it twice!
unset($context['recipients']['emails'][$k]);
// Dammit - can't PM emails!
if ($context['send_pm'])
continue;
// Non-members can't subscribe or unsubscribe from anything...
$unsubscribe_link = '';
$to_member = array(
$email,
!empty($_POST['send_html']) ? '<a href="mailto:' . $email . '">' . $email . '</a>' : $email,
'??',
$email,
$unsubscribe_link,
);
sendmail($email, str_replace($from_member, $to_member, $_POST['subject']), str_replace($from_member, $to_member, $_POST['message']), null, 'news', !empty($_POST['send_html']),
5);
replace with
// Don't sent it twice!
unset($context['recipients']['emails'][$k]);
// Dammit - can't PM emails!
if ($context['send_pm'])
continue;
// Newsletter Pro
// Send single emails
// Check subject is empty
if (empty($_POST['subject']))
fatal_error("Unable to send subject is empty",false);
// Check if message is empty
if (empty($_POST['message']))
fatal_error("Unable to send message is empty",false);
$emailID = 0;
if (empty($context['send_pm']))
{
$email_query = "INSERT INTO " . $temptable . " (ID_LETTER,email) VALUES ";
// Replace bad characters
$email = str_replace("'","", $email);
$email_query .= "('" . $context['ID_LETTER'] . "','" . $email . "'),";
$email_query .= "]]";
$email_query = str_replace(",]]","",$email_query);
$smcFunc['db_query']('', $email_query);
$emailID = $smcFunc['db_insert_id']($temptable, 'ID_EMAIL');
$smcFunc['db_query']('', "UPDATE {db_prefix}newspro_newsletters SET sent = sent + 1 WHERE ID_LETTER = " . $context['ID_LETTER']);
}
$message = str_replace("#ID_EMAIL#",$emailID,$_POST['message']);
global $boardurl;
$message = str_replace("EMAILHASH",sha1($email . $boardurl),$message);
// End Send Singe emails
// End Newsletter Pro
$to_member = array(
$email,
!empty($_POST['send_html']) ? '<a href="mailto:' . $email . '">' . $email . '</a>' : $email,
'??',
$email,
$unsubscribe_link,
);
sendmail($email, str_replace($from_member, $to_member, $_POST['subject']), str_replace($from_member, $to_member, $_POST['message']), null, 'news', !empty($_POST['send_html']), 5);
so do i simply replace the above code and the error is cleared ? .