Changeset 17085 for branches/version-2
- Timestamp:
- 2008/02/27 17:01:40 (18 years ago)
- File:
-
- 1 edited
-
branches/version-2/data/class/SC_SendMail.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2/data/class/SC_SendMail.php
r17055 r17085 43 43 // コンストラクタ 44 44 function SC_SendMail() { 45 $this->arrRecip = array(); 45 46 $this->to = ""; 46 47 $this->subject = ""; … … 62 63 } 63 64 65 // 送信先の設定 66 function setRecip($recipient) { 67 $this->arrRecip[] = $recipient; 68 } 69 64 70 // 宛先の設定 65 71 function setTo($to, $to_name = "") { 66 $this->to = $this->getNameAddress($to_name, $to); 72 if($to != "") { 73 $this->to = $this->getNameAddress($to_name, $to); 74 $this->setRecip($to); 75 } 67 76 } 68 77 … … 76 85 if($cc != "") { 77 86 $this->cc = $this->getNameAddress($cc_name, $cc); 87 $this->setRecip($cc); 78 88 } 79 89 } … … 83 93 if($bcc != "") { 84 94 $this->bcc = $bcc; 95 $this->setRecip($bcc); 85 96 } 86 97 } … … 150 161 } 151 162 152 function setItem( $to, $subject, $body, $fromaddress, $from_name, $reply_to="", $return_path="", $errors_to="", $bcc="", $cc ="") {163 function setItem($to, $subject, $body, $fromaddress, $from_name, $reply_to="", $return_path="", $errors_to="", $bcc="", $cc ="") { 153 164 $this->setBase($to, $subject, $body, $fromaddress, $from_name, $reply_to, $return_path, $errors_to, $bcc, $cc); 154 165 } 155 166 156 function setItemHtml( $to, $subject, $body, $fromaddress, $from_name, $reply_to="", $return_path="", $errors_to="", $bcc="", $cc ="") {167 function setItemHtml($to, $subject, $body, $fromaddress, $from_name, $reply_to="", $return_path="", $errors_to="", $bcc="", $cc ="") { 157 168 $this->setBase($to, $subject, $body, $fromaddress, $from_name, $reply_to, $return_path, $errors_to, $bcc, $cc); 158 169 } … … 237 248 $header = $this->getTEXTHeader(); 238 249 // メール送信 239 $result = $this->objMail->send($this-> to, $header, $this->body);250 $result = $this->objMail->send($this->arrRecip, $header, $this->body); 240 251 if (PEAR::isError($result)) { 241 252 GC_Utils_Ex::gfPrintLog($result->getMessage()); … … 250 261 $header = $this->getHTMLHeader(); 251 262 // メール送信 252 $result = $this->objMail->send($this-> to, $header, $this->body);263 $result = $this->objMail->send($this->arrRecip, $header, $this->body); 253 264 if (PEAR::isError($result)) { 254 265 GC_Utils_Ex::gfPrintLog($result->getMessage());
Note: See TracChangeset
for help on using the changeset viewer.
