--- C:/Users/Dane Powell/Desktop/messaging/messaging_phpmailer/messaging_phpmailer.module	Sat Jun 13 09:49:13 2009
+++ C:/Users/Dane Powell/Desktop/modules/messaging/messaging_phpmailer/messaging_phpmailer.module	Sat Oct 24 22:56:17 2009
@@ -77,7 +77,13 @@
       '#type' => 'checkbox',
       '#default_value' => variable_get('messaging_phpmailer_attach', 0),
       '#description' => t('If enabled, attachments will be included with outgoing messages.')
-  );  
+  );
+  $form['messaging_phpmailer_bcc'] = array(
+      '#title' => t('Send via BCC'),
+      '#type' => 'checkbox',
+      '#default_value' => variable_get('messaging_phpmailer_bcc', 0),
+      '#description' => t('If enabled, messages will be sent as BCCs and will have no "To:" address. ')
+  );
   $form['messaging_phpmailer_debug'] = array(
       '#title' => t('Debug mode'),
       '#type' => 'radios',
@@ -159,13 +167,15 @@
   }
   $mail->From = !empty($from['email']) ? $from['email'] : $message['headers']['From'];
   $mail->FromName = !empty($from['name']) ? $from['name'] : '';
-  $mail->AddAddress($message['to']);
+  if(variable_get('messaging_phpmailer_bcc', 0)) {
+    $mail->AddBCC($message['to']);
+  }
+  else {
+    $mail->AddAddress($message['to']);
+  }
 
   if(!empty($message['headers']['Message-ID'])) {
     $mail->MessageID = $message['headers']['Message-ID'];
