[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
14082024
/
Data
/
htdocs
/
htdocs
/
simkeu
/
metrosapp
/
mdk-lib
/
mail
/
[
Home
]
File: email_reseller.php
<?php require "class.phpmailer.php"; require_once("koneksi.php"); $query = "SELECT reseller_email FROM cf_reseller WHERE reseller_id = ".base64_decode($_GET["reseller_id"]); $result = mysql_query($query); $row = mysql_fetch_array($result); $cek = mysql_num_rows($result); if ($cek>0){ try { $mail = new PHPMailer(true); //New instance, with exceptions enabled $body = "TERIMA KASIH ANDA TELAH MENDAFTAR MENJADI RESELLER PREMIUM NIC KAMI. SILAHKAN TUNGGU 1X24 JAM UNTUK PROSES VERIFIKASI DATA ANDA OLEH CATFIZ SERVICE."; $mail->IsSMTP(); // tell the class to use SMTP $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPSecure = "tls"; $mail->Port = 587; // set the SMTP server port $mail->Host = "mail.catfiz.com"; // SMTP server $mail->Username = "premiumnic@catfiz.com"; // SMTP server username $mail->Password = "catfiz5758"; // SMTP server password //$mail->IsSendmail(); // tell the class to use Sendmail $mail->AddReplyTo("premiumnic@catfiz.com ","Premium NIC Catfiz"); $mail->From = "premiumnic@catfiz.com "; $mail->FromName = "Premium NIC Catfiz"; $to = $row['reseller_email']; $mail->AddAddress($to); $mail->Subject = "Premium NIC"; //$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test //$mail->WordWrap = 80; // set word wrap $mail->MsgHTML($body); $mail->IsHTML(true); // send as HTML $mail->Send(); // echo "Message has been sent."; } catch (phpmailerException $e) { echo $e->errorMessage(); } } echo "<script>location.href='http://www.catfiz.com/premiumnic/be_reseller.php';</script>"; ?>