<style>
.font{
	text-family:tahoma;
	text-size:13px;
}
.merah{
	color:#FF0000;
	text-style:bold;
	
}
</style>

<?php

$sekolah="SMP 1 Gombong";
$email="khamdirahmani@gmail.com";
$hp="085328635677";
$jenjang="SMP";
 //include "menu_utama.php";
include "random.php";
include "koneksi.php";


//$sekolah="MTs Negeri 4 Kebumen"; 
?>

<!--------- KONTEN ------------>	

<style>
.judul{
	font-family:arial;
	font-size:18px;
	color:#F00;
}
.terkirim{
	font-family:arial;
	font-size:18px;
	color:#006400;
}
.subjudul{
	font-family:arial;
	font-size:14px;
	color:#00F;
}
.isi{
	font-family:arial;
	font-size:13px;
	color:#000;
}
.just{
	text-align:justify;
}
.input{
	
    width:100%;
}
</style>
</div>
  <p class="judul"><strong></strong></p><br />
  
  <div class="login-box-body" align="left">
        <p class="login-box-msg" ></p>
       
        
         
           <div class="form-group has-feedback">
          
           
          </div>
          <div class="row">
            <div class="col-xs-8">
              
            </div><!-- /.col -->
           
          </div>
   <p class="terkirim">KONFIRMASI TELAH TERKIRIM</p> <BR>
    <p><i><b>Informasi Link Aplikasi dan Aktivasi akan kami kirim ke email setelah dilakukan validasi</b></i></p> <BR>
<table width="700" border="2"><tr><td align="center">
	
</td></tr></table>  
 <p><i><b></b></i></p> <BR> 
  <!--------- TABEL------------> 
  

<?php
//Data

//panggil database ke form
//$token=$_GET['token'];
	//Kategori Li dan EMIS
//$cari="SELECT * FROM daf_0 where token='$token'";
	//$hasil=mysql_query($cari,$konek);
	//$data=mysql_fetch_array($hasil);
	//$email=$data['email'];
	//$sekolah2=$data['sekolah'];
	//$hp=$data['hp'];
	//$jenjang=$data['jenjang'];

// multiple recipients
//$to  = $emailnya2. ', '; // note the comma
//$to .= 'khamdirahmani@gmail.com';
//$to .= $emailnya2;

// subject
//$subject = 'Konfirmasi Pembayaran';

// message
$message ="
<html>
<head>
  <title>Konfirmasi Pembayaran</title>
</head>
<body>
  <p>Konfirmasi Pembayaran Aplikasi AKS</p>
  <table width=800 border=0 cellspacing=0 cellpadding=0 class=font>
  <tr>
    <td width=143>http://aplikasiaks.com</td>
    <td width=12>&nbsp;</td>
    <td width=415>&nbsp;</td>
    <td width=9>&nbsp;</td>
    <td width=9>&nbsp;</td>
    <td width=12>&nbsp;</td>
  </tr>
  <tr>
    <td colspan=6>MENUJU PENGELOLAAN KEUANGAN SEKOLAH YANG MUDAH, EFEKTIF, EFISIEN DAN AKUNTABLE</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Kepada Yth :</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan=6 >Kepala ".$sekolah."</td>
   
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan=6 >Assalamu `alaikum wr wb</td>
   
  </tr>
  <tr>
    <td colspan=6 class=just>Saudara telah melakukan Konfirmasi Pembayaran atas Pembelian Aplikasi AKS. Terima Kasih atas Kepercayaan Saudara untuk menunggunakan Aplikasi kami.<br>
	Mohon berkenan untuk menunggu Validasi kami. Setelah kami Validasi kami akan mengirim Link Aplikasi dan Aktivasi melalui email ini.<br>
	Apabila, Saudara belum melakukan Pembayaran, Pembayaran dapat dilakukan melalui Rekening kami :<br><br>
	<b>BRI Cabang Gombong Kebumen, Nomor : 0134-01-025248-50-1, an Khamdi Rahmani</b></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Nama Lembaga </td>
    <td>:</td>
    <td class=merah><b>".$sekolah."</b></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Jenjang</td>
    <td>:</td>
    <td class=merah><b>".strtoupper($jenjang)."</b></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Email  </td>
    <td>:</td>
    <td class=merah><b>".$email."</b></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan=6></td>
  
  </tr>
  <tr>
    <td>Nomor HP  </td>
    <td>:</td>
    <td class=merah><b>".$hp."</b></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan=6></td>
  
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan=6>Apabila menemui kendala / kesulitan silahkan menghubungi Distributor kami atau WA : 085328635677</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan=6>Wassalamu `alaikum wr wb</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Admin Aplikasi AKS</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan=6>_____________________________________________________________________________</td>
  </tr>
  <tr>
    <td colspan=6>Email ini dikirim secara otomatis oleh Sistem, Jangan membalas ke alamat email ini.</td>
  </tr>
</table>
</body>
</html>
";

?>
<?php
require 'PHPMailer/PHPMailerAutoload.php';
$mail = new PHPMailer;

// Konfigurasi SMTP
$mail->isSMTP();
$mail->Host = 'smtp.gmail.com';
$mail->SMTPAuth = true;
$mail->Username = 'aplikasiaks@gmail.com';
$mail->Password = 'hasnaproduction';
$mail->SMTPSecure = 'tls';
$mail->Port = 587;

$mail->setFrom('aplikasiaks@gmail', 'AKS');
$mail->addReplyTo('aplikasiaks@gmail', 'AKS');

// Menambahkan penerima
$mail->addAddress('khamdirahmani@gmail');

// Menambahkan beberapa penerima
//$mail->addAddress('penerima2@contoh.com');
//$mail->addAddress('penerima3@contoh.com');


// Subjek email
$mail->Subject = 'Link Aplikasi AKS';

// Mengatur format email ke HTML
$mail->isHTML(true);

// Konten/isi email
$mailContent = "<h1>Mengirim Email HTML menggunakan SMTP di PHP</h1>
    <p>Ini adalah email percobaan yang dikirim menggunakan email server SMTP dengan PHPMailer.</p>";
$mail->Body = $message;

// Menambahakn lampiran
//$mail->addAttachment('lmp/file1.pdf');
//$mail->addAttachment('lmp/file2.png', 'nama-baru-file2.png'); //atur nama baru
$mail->send();
// Kirim email
//if(!$mail->send()){
  //  echo 'Pesan tidak dapat dikirim.';
    //echo 'Mailer Error: ' . $mail->ErrorInfo;
//}else{
  //  echo 'Pesan telah terkirim';
//}