Mini Shell

Direktori : /home/rizant5/www/development/
Upload File :
Current File : /home/rizant5/www/development/sendemail.php

<?php
require_once('phpmailer/class.phpmailer.php');
require_once('phpmailer/class.smtp.php');
$name=$_POST['name'];
$email=$_POST['email'];
$phone=$_POST['phone'];
$subject=$_POST['subject'];
$messages=$_POST['message'];
$message ="<b>Name:</b> $name<br />
<b>Email:</b> $email<br />
<b>Phone:</b> $phone<br />
<b>Subject:</b> $subject<br />
<b>Message:</b> $messages<br />";
		$mail	= new PHPMailer; // call the class 
		//$mail->IsSMTP();
		$mail->SMTPDebug  = 1; 
		$mail->SMTPSecure = "tls";	 
		$mail->Host = "smtp.gmail.com"; //Hostname of the mail server
		$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 = "praveen.patel.9595"; //Username for SMTP authentication any valid email created in your domain
		$mail->Password = "bgxbpqumcefjrbqi"; //Password for SMTP authentication
		$mail->AddReplyTo($email, $name); //reply-to address
		$mail->SetFrom("support@lankavirtualacademy.com","Contact Enquiry"); //From address of the mail
		// put your while loop here like below,
		$mail->Subject = $subject; //Subject od your mail
		$mail->AddAddress("support@lankavirtualacademy.com","Lanka Virtual Academy"); //To address who will receive this email
		$mail->MsgHTML($message);
		$send = $mail->Send(); //Send the mails
		header("location:contact-us.php");
?>

Zerion Mini Shell 1.0