Changeset 21441 for branches/version-2_12-dev/data/class/SC_SendMail.php
- Timestamp:
- 2012/02/06 11:05:15 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_SendMail.php
r21420 r21441 63 63 // 宛先の設定 64 64 function setTo($to, $to_name = "") { 65 if ($to != "") {65 if ($to != "") { 66 66 $this->to = $this->getNameAddress($to_name, $to); 67 67 $this->setRecip('To', $to); … … 76 76 // CCの設定 77 77 function setCc($cc, $cc_name = "") { 78 if ($cc != "") {78 if ($cc != "") { 79 79 $this->cc = $this->getNameAddress($cc_name, $cc); 80 80 $this->setRecip('Cc', $cc); … … 84 84 // BCCの設定 85 85 function setBCc($bcc) { 86 if ($bcc != "") {86 if ($bcc != "") { 87 87 $this->bcc = $bcc; 88 88 $this->setRecip('Bcc', $bcc); … … 92 92 // Reply-Toの設定 93 93 function setReplyTo($reply_to) { 94 if ($reply_to != "") {94 if ($reply_to != "") { 95 95 $this->reply_to = $reply_to; 96 96 } … … 140 140 // 名前<メールアドレス>の形式を生成 141 141 function getNameAddress($name, $mail_address) { 142 if ($name != "") {142 if ($name != "") { 143 143 // 制御文字を変換する。 144 144 $_name = $name; … … 190 190 191 191 // Errors-Toは、ほとんどのSMTPで無視され、Return-Pathが優先されるためReturn_Pathに設定する。 192 if ($errors_to != "") {192 if ($errors_to != "") { 193 193 $this->return_path = $errors_to; 194 } else if ($return_path != "") {194 } else if ($return_path != "") { 195 195 $this->return_path = $return_path; 196 196 } else { … … 207 207 $arrHeader['From'] = $this->from; 208 208 $arrHeader['Return-Path'] = $this->return_path; 209 if ($this->reply_to != "") {209 if ($this->reply_to != "") { 210 210 $arrHeader['Reply-To'] = $this->reply_to; 211 211 } 212 if ($this->cc != "") {212 if ($this->cc != "") { 213 213 $arrHeader['Cc'] = $this->cc; 214 214 } 215 if ($this->bcc != "") {215 if ($this->bcc != "") { 216 216 $arrHeader['Bcc'] = $this->bcc; 217 217 }
Note: See TracChangeset
for help on using the changeset viewer.
