| Current Path : /var/www/html/mmishra/iws8/html/pcstore/backupxxxxxxx/ |
| Current File : /var/www/html/mmishra/iws8/html/pcstore/backupxxxxxxx/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";
}
?>