Changeset 17375 for branches/comu-ver2/data/class/helper
- Timestamp:
- 2008/06/26 15:27:38 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/helper/SC_Helper_Mail.php
r16741 r17375 45 45 46 46 /* DBに登録されたテンプレートメールの送信 */ 47 function sfSendTemplateMail($to, $to_name, $template_id, &$objPage ) {47 function sfSendTemplateMail($to, $to_name, $template_id, &$objPage, $from_address = "", $from_name = "", $reply_to = "") { 48 48 49 49 $objQuery = new SC_Query(); … … 65 65 // メール送信処理 66 66 $objSendMail = new SC_SendMail_Ex(); 67 $from = $arrInfo['email03']; 67 if ($from_address == "") $from_address = $arrInfo['email03']; 68 if ($from_name == "") $from_name = $arrInfo['shop_name']; 69 if ($reply_to == "") $reply_to = $arrInfo['email03']; 68 70 $error = $arrInfo['email04']; 69 71 $tosubject = $tmp_subject; 70 $objSendMail->setItem('', $tosubject, $body, $from , $arrInfo['shop_name'], $from, $error, $error);72 $objSendMail->setItem('', $tosubject, $body, $from_address, $from_name, $reply_to, $error, $error); 71 73 $objSendMail->setTo($to, $to_name); 72 74 $objSendMail->sendMail(); // メール送信 … … 86 88 // メールテンプレート情報の取得 87 89 $where = "template_id = ?"; 88 $arrRet = $objQuery->select("subject, header, footer", "dtb_mailtemplate", $where, array( '1'));90 $arrRet = $objQuery->select("subject, header, footer", "dtb_mailtemplate", $where, array($template_id)); 89 91 $objPage->tpl_header = $arrRet[0]['header']; 90 92 $objPage->tpl_footer = $arrRet[0]['footer'];
Note: See TracChangeset
for help on using the changeset viewer.
