Deprecated: Function split() is deprecated in C:\xampp\htdocs\login_test\class.phpmailer.php on line 470
this error is coming from $mail->AddAddress(tester@hotmail.com); //is this same as To:
require_once('class.phpmailer.php');
$mail = new PHPMailer();
$mail->AddAddress("test@hotmail.com"); //To:
$mail->Subject = "test1";
//html body
$body = "HEllow ikhlas";
$body .= "rest of boey";
$body .= "Sincerely,<br/>";
$body .= "test";
$mail->From = "test@hotmail.com";
$mail->FromName = "test";
if(!$mail->send())
{
echo "Mail error".$mail->ErrorInfo;
}
else
{
echo "worked";
}