Changeset 23615
- Timestamp:
- 2014/09/05 15:54:00 (9 years ago)
- Location:
- branches/version-2_13-dev/data
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/pages/mypage/LC_Page_Mypage_Refusal.php
r23605 r23615 80 80 81 81 $objCustomer = new SC_Customer_Ex(); 82 $this->lfSendRefusalMail($objCustomer->getValue('customer_id')); 82 83 $this->lfDeleteCustomer($objCustomer->getValue('customer_id')); 83 84 $objCustomer->EndSession(); … … 137 138 return SC_Helper_Customer_Ex::delete($customer_id); 138 139 } 140 141 /** 142 * 退会手続き完了メール送信する 143 * 144 * @access private 145 * @param integer $customer_id 会員ID 146 * @return void 147 */ 148 public function lfSendRefusalMail($customer_id) 149 { 150 // 会員データの取得 151 if (SC_Utils_Ex::sfIsInt($customer_id)) { 152 $arrCustomerData = SC_Helper_Customer_Ex::sfGetCustomerDataFromId($customer_id); 153 } 154 if (SC_Utils_Ex::isBlank($arrCustomerData)) { 155 return false; 156 } 157 158 $CONF = SC_Helper_DB_Ex::sfGetBasisData(); 159 160 $objMailText = new SC_SiteView_Ex(); 161 $objMailText->setPage($this); 162 $objMailText->assign('CONF', $CONF); 163 $objMailText->assign('name01', $arrCustomerData['name01']); 164 $objMailText->assign('name02', $arrCustomerData['name02']); 165 $objMailText->assignobj($this); 166 167 $objHelperMail = new SC_Helper_Mail_Ex(); 168 $objHelperMail->setPage($this); 169 170 $subject = $objHelperMail->sfMakeSubject('退会手続きのご完了', $objMailText); 171 $toCustomerMail = $objMailText->fetch('mail_templates/customer_refusal_mail.tpl'); 172 173 $objMail = new SC_SendMail_Ex(); 174 $objMail->setItem( 175 '', // 宛先 176 $subject, // サブジェクト 177 $toCustomerMail, // 本文 178 $CONF['email03'], // 配送元アドレス 179 $CONF['shop_name'], // 配送元 名前 180 $CONF['email03'], // reply_to 181 $CONF['email04'], // return_path 182 $CONF['email04'], // Errors_to 183 $CONF['email01'] // Bcc 184 ); 185 $objMail->setTo($arrCustomerData['email'], $arrCustomerData['name01'] . $arrCustomerData['name02'] .' 様'); 186 187 $objMail->sendMail(); 188 } 189 139 190 }
Note: See TracChangeset
for help on using the changeset viewer.