Mini Shell

Direktori : /opt/
Upload File :
Current File : //opt/mailsnd-test.php

<?php
session_start();
require 'phpmailer/PHPMailerAutoload.php';

$username="SMP Test";
$email="test@smp.com";
$mobile="9876543210";
$cmt="testing email";


 $mail = new PHPMailer;

$mail->isSMTP();
$mail->SMTPDebug = 2;
$mail->SMTPKeepAlive = true;   
$mail->Mailer ="smtp";


//$mail->Host = 'ssl://mail.rareeram.com:587';
$mail->Host = "smtp.gmail.com"; 
$mail->SMTPAuth = true;
$mail->Username = "jerusalemcentre2020@gmail.com";
$mail->Password = 'jerusalem@2020';
//$mail->Username = "programerstest@gmail.com";
//$mail->Password = 'Pro@123456';
$mail->SMTPSecure = 'tls';
$mail->SMTPAutoTLS = false;
$mail->Port = 587;
$to = "mail@jerusalemcentre.org";
//$to = "programerstest@gmail.com";
$mail->setFrom($email, $username);
$mail->AddReplyTo($email, $username);
$mail->addAddress($to,'Enquiry From jerusalemcentre.org');
$mail->Subject = "Enquiry From  jerusalemcentre.org ";
$mail->isHTML(true);

$message = "<!DOCTYPE html>
	<html>
	<head>
		<title></title>
	</head>
	<body>
		<table>
		<tr>
		<th>Name</th>
		<td>".$username."</td>
		</tr>
		<tr>
		<th>Email</th>
		<td>".$email."</td>
		</tr>
		<tr>
		<th>Mobile</th>
		<td>".$mobile."</td>
		</tr>
		
		<tr>
		<th>Message</th>
		<td>".$cmt."</td>
		</tr>
		</table>
	</body>
	</html>";

$mail->Body = $message;
if ($mail->send())
{
	echo "1";
}
else
{
	echo  $mail->ErrorInfo;
}
?>

Zerion Mini Shell 1.0