Mini Shell

Direktori : /proc/self/root/proc/self/root/home/rizant5/public_html-1210/development/
Upload File :
Current File : //proc/self/root/proc/self/root/home/rizant5/public_html-1210/development/test-mail.php.bkup

<?php require_once('function-file.php');

require_once('config.php');

?>

<?php    

  require_once('phpmailer/class.phpmailer.php');

  require_once('phpmailer/class.smtp.php');

  // $stu_name=htmlspecialchars($_POST['stu_name'],ENT_QUOTES);

  // $stu_email=$_POST['stu_email'];

  // $stu_phone=$_POST['stu_phone'];

  // $stu_password=md5($_POST['stu_password']);

  // $school=htmlspecialchars($_POST['school'],ENT_QUOTES);

  // $city=htmlspecialchars($_POST['city'],ENT_QUOTES);

  // $conn->exec("insert into student_reg (stu_name,stu_email,stu_phone,stu_password,course_id,school,city,pay_mode) VALUES ('$stu_name','$stu_email','$stu_phone','$stu_password','$course_id','$school','$city','$pay_status')");

  // $stu_id=$conn->lastInsertId();

        // $verify_url="http://" . $_SERVER['SERVER_NAME'] ."/$path?usf=$stu_id";

  //Send Mail

  $message ="<b>Dear </b><br />
  <br /><br />

  <b>The Administrator<br />
  Lanka Virtual Academy</b>";

    $mail = new PHPMailer; // call the class 

    $mail->IsSMTP();

    $mail->SMTPDebug  = 0; 

    $mail->SMTPSecure = "tls";   

    // $mail->Host = "smtp.gmail.com"; //Hostname of the mail server
    $mail->Host = "secure200.inmotionhosting.com"; //Hostname of the mail server

    // $mail->Port = 587; //Port of the SMTP like to be 25, 80, 465 or 587
    $mail->Port = 587; //Port of the SMTP like to be 25, 80, 465 or 587

    $mail->SMTPAuth = true; //Whether to use SMTP authentication

    $mail->Username = "subscription@lankavirtualacademy.com"; //Username for SMTP authentication any valid email created in your domain

    $mail->Password = "subscription@lva"; //Password for SMTP authentication

    $mail->AddReplyTo("support@lankavirtualacademy.com", "Lanka Virtual Academy"); //reply-to address

    $mail->SetFrom("subscription@lankavirtualacademy.com","Lanka Virtual Academy"); //From address of the mail

    // put your while loop here like below,

    $mail->Subject = "Thanks for Registering! Please Verify your account."; //Subject od your mail

    $mail->AddAddress('mikeshahp@gmail.com',"Mike Shah"); //To address who will receive this email

    $mail->MsgHTML($message);

    // echo "Hi";die();

    if(!$mail->send()) {
        echo "Mailer Error: " . $mail->ErrorInfo;
    }else{
        echo "Message has been sent successfully";
    }
// echo "<pre>";print_r($mail);echo "</pre>";die();

    // $send = $mail->Send(); //Send the mails
    // echo "<pre>";print_r($send);echo "</pre>";

    ?>

Zerion Mini Shell 1.0