Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/indem/pcstore/public_html/
Upload File :
Current File : /var/www/html/mmishra/indem/pcstore/public_html/mail.php

<?php
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "172.31.1.27"; // SMTP server
$mail->FromName = "mcell@iiita.ac.in";
$mail->From = "mmishra@iiita.ac.in";
$mail->AddAddress("mmishra@iiita.ac.in","MMishra");
$mail->Username = "mmishra";
$mail->Password = "nothing";

$mail->Subject = "Test Mail";
$mail->Body = "hi ! \n\n this is First mailing I made myself with PHPMailer !";
$mail->WordWrap = 50;

if(!$mail->Send()){
   echo "Message was not sent\n";
   echo "Mailer Error: " . $mail->ErrorInfo;
}else{
   echo "Message has been sent";
}

?>