<?php
include("class/class.phpmailer.php");
$mail = new PHPMailer();
$mail->SMTPDebug = 3;
$mail->IsSMTP();
$mail->SMTPAuth = false;
$mail->SMTPSecure = "starttls";
$mail->Host = "192.168.21.20";
$mail->Port = 25;
$mail->CharSet = "utf-8";
#$mail->Password = "cccccc";
$mail->FromName = "aaaa";
$mail->Subject = "PHPMailer ";
$mail->Body = "222222222 ";
$mail->IsHTML(false);
if (!$mail->Send()) {
echo "Mailer Error: " . $mail->ErrorInfo;
} else {
echo "Message sent!";
}