IsSMTP(); // telling the class to use SMTP
$mail->Host = "b8world.com"; // SMTP server
$mail->SMTPAuth = true; // authentication enabled
$mail->Port = 587;
// $mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for GMail
$mail->CharSet = $charset;
$mail->Username = "mailservices@b8world.com"; // SMTP account username
$mail->Password = "cJldETQ2V52o"; // SMTP account password
//$mail->From = "mailservices@b8world.com";
$mail->SetFrom('mailservices@b8world.com', 'Bateworld');
$mail->AddReplyTo('mailservices@b8world.com', 'Bateworld');
$mail->AddAddress('porembaphilip@gmail.com');
$mail->Subject = 'This is a test message';
$mail->MsgHTML('once upon a time and a very good time it was');
if(!$mail->Send()) {
echo 'Message could not be sent.';
echo 'Mailer Error: ' . $mail->ErrorInfo;
exit;
}
?>