SUB0011.php
1.43 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
48
49
50
51
52
53
54
55
56
57
58
59
60
<?PHP
//*****************************************************************************
//*
//* プログラム名:め〜るNiポン!V2
//* プログラムID:SUB0011.php
//* 機能 :携帯電話へログインURL送信
//*
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");
//***************************
//* インクルードファイル
//***************************
include('./include/smarty.conf');
include("./include/jcode.phps");
include("./include/session_start.inc");
include("./include/SessionChk.inc");
include("./include/getDomain.inc");
//********** ヘッダー処理 **********//
include("./include/headr_data.inc");
//********** メイン処理 **********//
include("./include/dbcon.inc");
$maddr = $account . "@" . $domain;
$Status = 0;
if($maddr == "" || $maddr == NULL){
$Status = -1;
}else{
// メール内容
$mlfr = "From:webmaster@media-tek.co.jp";
$mlto = $maddr;
$mlsb = "めーるNiポン!携帯版";
$mlms = "以下のアドレスよりログインしてください。\n".$PONV2_URL_HEAD_M."keitai/index.php";
$mlsb = "=?iso-2022-jp?B?" . base64_encode(jcodeconvert(stripslashes($mlsb), 0, 3)) . "?=";
$mlms = jcodeconvert($mlms,1,3);
//メール送信
$rcd = mail($mlto, $mlsb, $mlms, $mlfr);
if($rcd == false){
$Status = -1;
}
}
if ($Status==-1){
$Msg = "メールの送信に失敗しました。";
}else{
$Msg = "メールを送信しました";
}
$o_smarty->assign('Msg' , $Msg);
$o_smarty->display('SUB0011.tpl');
?>