Changeset 18667
- Timestamp:
- 2010/06/02 15:01:53 (14 years ago)
- bzr:base-revision:
- svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/comu-ver2:18661
- bzr:committer:
- Kentaro Ohkouchi <ohkouchi@loop-az.jp>
- bzr:file-ids:
data/class/SC_SendMail.php 16322@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2FSC_SendMail.php- bzr:mapping-version:
- v4
- bzr:repository-uuid:
- 1e3b908f-19a9-db11-a64c-001125224ba8
- bzr:revision-id:
- ohkouchi@loop-az.jp-20100602060146-t33m08cdultmcorl
- bzr:revno:
- 2230
- bzr:revprop:branch-nick:
- branches/comu-ver2
- bzr:root:
- branches/comu-ver2
- bzr:text-parents:
data/class/SC_SendMail.php svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/comu-ver2:17568- bzr:timestamp:
- 2010-06-02 15:01:46.861999989 +0900
- bzr:user-agent:
- bzr2.1.1+bzr-svn1.0.2
- svn:original-date:
- 2010-06-02T06:01:46.862000Z
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/SC_SendMail.php
r17568 r18667 261 261 } 262 262 263 // TXTメール送信を実行する 263 /** 264 * TXTメール送信を実行する. 265 * 266 * 設定された情報を利用して, メールを送信する. 267 * メールの宛先に Cc や Bcc が設定されていた場合は, 宛先ごとに複数回送信を行う. 268 * 269 * - getRecip() 関数の返り値が配列の場合は, 返り値のメールアドレスごとに, 270 * PEAR::Mail::send() 関数を実行する. 271 * - getRecip() 関数の返り値が string の場合は, 返り値のメールアドレスを 272 * RCPT TO: に設定し, PEAR::Mail::send() 関数を実行する. 273 * 274 * @return void 275 */ 264 276 function sendMail() { 265 277 $header = $this->getTEXTHeader(); 278 $recip = $this->getRecip(); 279 266 280 // メール送信 267 $result = $this->objMail->send($this->getRecip(), $header, $this->body); 268 if (PEAR::isError($result)) { 269 GC_Utils_Ex::gfPrintLog($result->getMessage()); 270 GC_Utils_Ex::gfDebugLog($header); 271 return false; 272 } 273 return true; 281 if (is_array($recip)) { 282 foreach ($recip as $rcpt_to) { 283 $results[] = $this->objMail->send($rcpt_to, $header, $this->body); 284 } 285 } else { 286 $results[] = $this->objMail->send($recip, $header, $this->body); 287 } 288 289 $ret = true; 290 foreach ($results as $result) { 291 if (PEAR::isError($result)) { 292 GC_Utils_Ex::gfPrintLog($result->getMessage()); 293 GC_Utils_Ex::gfDebugLog($header); 294 $ret = false; 295 } 296 } 297 return $ret; 274 298 } 275 299
Note: See TracChangeset
for help on using the changeset viewer.