Can anyone help out on this problem.
By substituting $thiss for $this I get rid of the error msg but then only the admin receives an email and none of the BCC: copies are sent out. Below is a snippet of the code. Any help will be appreciated.
===================================================
Delivers email to recipients in plaintext
*/
function mail ($emails = array(), $subject = '$subject', $message = '$message ', $type='text') {
global $comment, $post, $user, $subject, $message, $post_link, $blogname;
if (empty($emails)) { return; }
// Set sender details
if ('' == $this->myname) {
$admin = get_userdata(1);
$this->myname = $admin->display_name;
$this->myemail = $admin->user_email;
}
$headers = "MIME-Version: 1.0\n" .
"From: wordpress@" . preg_replace('#^www\.#', '', strtolower($_SERVER['SERVER_NAME'])) . "\n" .
"Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n";
$headers .= "Return-Path: <" . $this->myemail . ">\n";
$headers .= "Reply-To: " . $this->myemail . "\n";
$headers .= "X-Mailer:PHP" . phpversion() . "\n";
$headers .= "Precedence: list\nList-Id: " . get_settings('blogname') . "\n";
===================================================