Changeset 21526 for branches/version-2_12-dev/data/class/SC_SendMail.php
- Timestamp:
- 2012/02/17 00:50:05 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_SendMail.php
r21515 r21526 242 242 switch ($this->backend) { 243 243 // PEAR::Mail_mail#send は、(他のメーラーバックエンドと異なり) 第1引数を To: として扱う。Cc: や Bcc: は、ヘッダー情報から処理する。 244 case 'mail': 245 return $this->to; 246 break; 247 case 'sendmail': 248 case 'smtp': 249 default: 250 return $this->arrRecip; 251 break; 244 case 'mail': 245 return $this->to; 246 247 case 'sendmail': 248 case 'smtp': 249 default: 250 return $this->arrRecip; 252 251 } 253 252 } … … 290 289 function getBackendParams($backend) { 291 290 switch ($backend) { 292 case 'mail':293 $arrParams = array();294 break;295 case 'sendmail':296 $arrParams = array('sendmail_path' => '/usr/bin/sendmail',297 'sendmail_args' => '-i'298 );299 break;300 case 'smtp':301 default:302 $arrParams = array(303 'host' => $this->host,304 'port' => $this->port305 );306 break;291 case 'mail': 292 $arrParams = array(); 293 break; 294 case 'sendmail': 295 $arrParams = array('sendmail_path' => '/usr/bin/sendmail', 296 'sendmail_args' => '-i' 297 ); 298 break; 299 case 'smtp': 300 default: 301 $arrParams = array( 302 'host' => $this->host, 303 'port' => $this->port 304 ); 305 break; 307 306 } 308 307 return $arrParams;
Note: See TracChangeset
for help on using the changeset viewer.
