*** smtp.module.original	Thu Nov  1 16:30:38 2007
--- smtp.module	Thu Nov  1 16:36:22 2007
***************
*** 182,187 ****
--- 182,196 ----
      else if (strtolower($key) == 'content-type' and strtolower($value) == 'text/html') {
        $mail->IsHTML(TRUE);
      }
+     else if (strtolower($key) == 'bcc') {
+       $bccrecipients = split(", ", $value);
+       foreach ($bccrecipients as $bccrecipient) {
+         $bccparts = explode(" <", $bccrecipient);
+         $bccname = $bccparts[0];
+         $bccaddr = rtrim($bccparts[1], ">");
+         $mail->AddBCC($bccaddr, $bccname);
+       }	
+     }
      else { //Else the header key is not special, just add it.
        $mail->AddCustomHeader($key . ": " . $value); //Add header line.
      }
