if ( $objPage->arrForm['email'] ) {
$fromMail_name = $objPage->arrForm['name01'] ." 様";
$fromMail_address = $objPage->arrForm['email'];
} else {
$fromMail_name = $CONF["shop_name"];
$fromMail_address = $CONF["email02"];
}
$helperMail = new SC_Helper_Mail_Ex();
$subject = $helperMail->sfMakeSubject($objQuery, $objMailText, $this, "お問い合わせがありました。");
$objMail->setItem(
$CONF["email02"] // 宛先
, $subject // サブジェクト
, $toCustomerMail // 本文
, $fromMail_address // 配送元アドレス
, $fromMail_name // 配送元 名前
, $fromMail_address // reply_to
, $CONF["email04"] // return_path
, $CONF["email04"] // Errors_to
);
$objMail->sendMail();
$subject = $helperMail->sfMakeSubject($objQuery, $objMailText, $this, "お問い合わせを受け付けました。");
$objMail->setItem(
'' // 宛先
, $subject // サブジェクト
, $toCustomerMail // 本文
, $CONF["email03"] // 配送元アドレス
, $CONF["shop_name"] // 配送元 名前
, $CONF["email02"] // reply_to
, $CONF["email04"] // return_path
, $CONF["email04"] // Errors_to
);
$objMail->setTo($objPage->arrForm['email'], $objPage->arrForm['name01'] ." 様");
$objMail->sendMail();
}
}
?> |