SUB0011.php 1.43 KB
<?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');


?>