FRM001.php
1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
//*****************************************************************************
//*
//* プログラム名:メール送信画面
//* プログラムID:FRM001
//* 機能 :メールを送信する
//* 作成者 :石田 英治
//*
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");
include("include/session_start.inc");
include("include/SessionChk.inc");
include('./include/smarty.conf');
include("inc/header.inc");
include("inc/input_chk.inc");
include("inc/FRM001.inc");
//メニューセット
include("menu_opacity.php");
include("inc/STRING.inc");
//**** DB接続 ****//
$strDBinc="include/dbcon.inc";
include($strDBinc);
$strToMailAdr = split("@",$mailadr);
$strToMailAcount = $strToMailAdr[0]; //送信先メールアドレスアカウント
$strToMailDomain = $strToMailAdr[1]; //送信先メールアドレスドメイン
$strSql = "SELECT mail_addr FROM syain_tbl WHERE syain_cd='$PHP_SYAIN_CD'";
$rsRecset = pg_exec($pg_con,$strSql);
$strFromMailAdr = split("@",pg_result($rsRecset,0,"mail_addr"));
$strFromMailAcount = $strFromMailAdr[0]; //送信元メールアドレスアカウント
$strFromMailDomain = $strFromMailAdr[1]; //送信元メールアドレスドメイン
$o_smarty->assign('Phpkind',$kind);
$o_smarty->assign('PhpToAddr',$strToMailAcount);
$o_smarty->assign('PhpToDomain',$strToMailDomain);
$o_smarty->assign('PhpFromAddr',$strFromMailAcount);
$o_smarty->assign('PhpFromDomain',$strFromMailDomain);
$o_smarty->display('FRM001.tpl');
?>