/****************************************************** ' System :Eco-footprint 会員ページ ' Content:ID,Password お問い合わせ '******************************************************/ $top = '.'; $inc = "$top/../inc"; include("$inc/common.php"); include("$inc/database.php"); include("$inc/mail.php"); include("$inc/encrypt.php"); include("$inc/get_form.php"); // 問い合わせ受付メール function mail_send($fetch) { get_mail_template('help', $subject, $from, $cc, $bcc, $repty_to, $body); $fetch2 = get_system_info('sy_url_top'); $body = str_replace('%REMIND_URL%', "{$fetch2->sy_url_top}remind.php?key=" . encrypt_number($fetch->mb_seq_no, 10), $body); send_mail($subject, $fetch->mb_mail_addr, $from, $body, $cc, $bcc, $reply_to); } if (!$mail_addr) { $msg = "メールアドレスが入力されていないようです。"; } else { $sql = "select mb_seq_no,mb_id,mb_step,mb_mail_addr,mb_password from t_member where mb_mail_addr=" . sql_char($mail_addr) . " and mb_step <> 9"; $result = db_exec($sql); if (pg_numrows($result)) { $fetch = pg_fetch_object($result, 0); // メール送信 mail_send($fetch); $msg = "メールを送信しました。"; } else $msg = "メールアドレスが登録されていないようです。"; } ?>