Index: branches/version-2/data/class/SC_SendMail.php
===================================================================
--- branches/version-2/data/class/SC_SendMail.php	(revision 17055)
+++ branches/version-2/data/class/SC_SendMail.php	(revision 17085)
@@ -43,4 +43,5 @@
     // コンストラクタ
     function SC_SendMail() {
+        $this->arrRecip = array();
         $this->to = "";
         $this->subject = "";
@@ -62,7 +63,15 @@
     }
 
+    // 送信先の設定
+    function setRecip($recipient) {
+        $this->arrRecip[] = $recipient;
+    }
+    
     // 宛先の設定
     function setTo($to, $to_name = "") {
-        $this->to = $this->getNameAddress($to_name, $to);
+        if($to != "") {
+            $this->to = $this->getNameAddress($to_name, $to);
+            $this->setRecip($to);
+        }
     }
 
@@ -76,4 +85,5 @@
         if($cc != "") {
             $this->cc = $this->getNameAddress($cc_name, $cc);
+            $this->setRecip($cc);
         }
     }
@@ -83,4 +93,5 @@
         if($bcc != "") {
             $this->bcc = $bcc;
+            $this->setRecip($bcc);
         }
     }
@@ -150,9 +161,9 @@
     }
 
-    function setItem( $to, $subject, $body, $fromaddress, $from_name, $reply_to="", $return_path="", $errors_to="", $bcc="", $cc ="" ) {
+    function setItem($to, $subject, $body, $fromaddress, $from_name, $reply_to="", $return_path="", $errors_to="", $bcc="", $cc ="") {
         $this->setBase($to, $subject, $body, $fromaddress, $from_name, $reply_to, $return_path, $errors_to, $bcc, $cc);
     }
 
-    function setItemHtml( $to, $subject, $body, $fromaddress, $from_name, $reply_to="", $return_path="", $errors_to="", $bcc="", $cc ="" ) {
+    function setItemHtml($to, $subject, $body, $fromaddress, $from_name, $reply_to="", $return_path="", $errors_to="", $bcc="", $cc ="") {
         $this->setBase($to, $subject, $body, $fromaddress, $from_name, $reply_to, $return_path, $errors_to, $bcc, $cc);
     }
@@ -237,5 +248,5 @@
         $header = $this->getTEXTHeader();
         // メール送信
-        $result = $this->objMail->send($this->to, $header, $this->body);
+        $result = $this->objMail->send($this->arrRecip, $header, $this->body);
         if (PEAR::isError($result)) {
             GC_Utils_Ex::gfPrintLog($result->getMessage());
@@ -250,5 +261,5 @@
         $header = $this->getHTMLHeader();
         // メール送信
-        $result = $this->objMail->send($this->to, $header, $this->body);
+        $result = $this->objMail->send($this->arrRecip, $header, $this->body);
         if (PEAR::isError($result)) {
             GC_Utils_Ex::gfPrintLog($result->getMessage());
