Changeset 17791
- Timestamp:
- 2009/02/17 14:11:42 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_4/data/class/pages/admin/customer/LC_Page_Admin_Customer.php
r17768 r17791 215 215 // 登録メール再送 216 216 if ($_POST['mode'] == "resend_mail") { 217 $CONF = $objDb->sf_getBasisData();218 $this->CONF = $CONF;219 $objMailText = new SC_SiteView();220 $objMailText->assignobj($this);221 $mailHelper = new SC_Helper_Mail_Ex();222 223 217 $arrRet = $objQuery->select("name01, name02, secret_key, email", "dtb_customer","customer_id = ? AND del_flg <> 1 AND status = 1", array($_POST["edit_customer_id"])); 224 225 $this->name01 = $arrRet[0]['name01']; 226 $this->name02 = $arrRet[0]['name02']; 227 $this->uniqid = $arrRet[0]['secret_key']; 228 229 $subject = $mailHelper->sfMakesubject($objQuery, $objMailText, $this, '会員登録のご確認'); 230 $toCustomerMail = $objMailText->fetch("mail_templates/customer_mail.tpl"); 231 232 $objMail = new SC_SendMail(); 233 $objMail->setItem( 234 '' // 宛先 235 , $subject // サブジェクト 236 , $toCustomerMail // 本文 237 , $CONF["email03"] // 配送元アドレス 238 , $CONF["shop_name"]// 配送元 名前 239 , $CONF["email03"] // reply_to 240 , $CONF["email04"] // return_path 241 , $CONF["email04"] // Errors_to 242 ); 243 // 宛先の設定 244 $name = $this->name01 . $this->name02 ." 様"; 245 $objMail->setTo($arrRet[0]["email"], $name); 246 $objMail->sendMail(); 218 if( is_array($arrRet) === true && count($arrRet) > 0 ){ 219 220 $CONF = $objDb->sf_getBasisData(); 221 $this->CONF = $CONF; 222 $objMailText = new SC_SiteView(); 223 $objMailText->assignobj($this); 224 $mailHelper = new SC_Helper_Mail_Ex(); 225 226 $this->name01 = $arrRet[0]['name01']; 227 $this->name02 = $arrRet[0]['name02']; 228 $this->uniqid = $arrRet[0]['secret_key']; 229 230 $subject = $mailHelper->sfMakesubject($objQuery, $objMailText, $this, '会員登録のご確認'); 231 $toCustomerMail = $objMailText->fetch("mail_templates/customer_mail.tpl"); 232 233 $objMail = new SC_SendMail(); 234 $objMail->setItem( 235 '' // 宛先 236 , $subject // サブジェクト 237 , $toCustomerMail // 本文 238 , $CONF["email03"] // 配送元アドレス 239 , $CONF["shop_name"]// 配送元 名前 240 , $CONF["email03"] // reply_to 241 , $CONF["email04"] // return_path 242 , $CONF["email04"] // Errors_to 243 ); 244 // 宛先の設定 245 $name = $this->name01 . $this->name02 ." 様"; 246 $objMail->setTo($arrRet[0]["email"], $name); 247 $objMail->sendMail(); 248 } 247 249 248 250 }
Note: See TracChangeset
for help on using the changeset viewer.