Changeset 18758 for trunk/data/class/pages/contact/LC_Page_Contact.php
- Timestamp:
- 2010/07/20 13:25:33 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/class/pages/contact/LC_Page_Contact.php
r18562 r18758 3 3 * This file is part of EC-CUBE 4 4 * 5 * Copyright(c) 2000-20 07LOCKON CO.,LTD. All Rights Reserved.5 * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved. 6 6 * 7 7 * http://www.lockon.co.jp/ … … 242 242 243 243 $objQuery = new SC_Query(); 244 $objMailText = new SC_SiteView();245 244 $objSiteInfo = $this->objView->objSiteInfo; 246 245 $arrInfo = $objSiteInfo->data; 247 246 $objPage->tpl_shopname=$arrInfo['shop_name']; 248 247 $objPage->tpl_infoemail = $arrInfo['email02']; 249 $objMailText->assignobj($objPage); 250 $toCustomerMail = $objMailText->fetch("mail_templates/contact_mail.tpl"); 251 $objMail = new SC_SendMail(); 252 253 if ( $objPage->arrForm['email'] ) { 254 $fromMail_name = $objPage->arrForm['name01'] ." 様"; 255 $fromMail_address = $objPage->arrForm['email']; 256 } else { 257 $fromMail_name = $CONF["shop_name"]; 258 $fromMail_address = $CONF["email02"]; 259 } 248 249 $fromMail_name = $objPage->arrForm['name01'] ." 様"; 250 $fromMail_address = $objPage->arrForm['email']; 251 260 252 $helperMail = new SC_Helper_Mail_Ex(); 261 $subject = $helperMail->sfMakeSubject($objQuery, $objMailText, $this, "お問い合わせがありました。"); 262 $objMail->setItem( 263 $CONF["email02"] // 宛先 264 , $subject // サブジェクト 265 , $toCustomerMail // 本文 266 , $fromMail_address // 配送元アドレス 267 , $fromMail_name // 配送元 名前 268 , $fromMail_address // reply_to 269 , $CONF["email04"] // return_path 270 , $CONF["email04"] // Errors_to 271 ); 272 $objMail->sendMail(); 273 274 $subject = $helperMail->sfMakeSubject($objQuery, $objMailText, $this, "お問い合わせを受け付けました。"); 275 $objMail->setItem( 276 '' // 宛先 277 , $subject // サブジェクト 278 , $toCustomerMail // 本文 279 , $CONF["email03"] // 配送元アドレス 280 , $CONF["shop_name"] // 配送元 名前 281 , $CONF["email02"] // reply_to 282 , $CONF["email04"] // return_path 283 , $CONF["email04"] // Errors_to 284 ); 285 $objMail->setTo($objPage->arrForm['email'], $objPage->arrForm['name01'] ." 様"); 286 $objMail->sendMail(); 253 $helperMail->sfSendTemplateMail($CONF["email02"], $CONF["shop_name"], "5", $objPage, $fromMail_address, $fromMail_name, $fromMail_address); 254 $helperMail->sfSendTemplateMail($objPage->arrForm['email'], $objPage->arrForm['name01'] ." 様", "5", $objPage, $CONF["email03"], $CONF["shop_name"], $CONF["email02"]); 287 255 } 288 256 }
Note: See TracChangeset
for help on using the changeset viewer.