News: I tested phpmailer class used by WP with this:
<?php
include "./wp-includes/class-phpmailer.php";
$mail = new PHPMailer();
$mail->IsMail();
$mail->AddAddress("deadbird99@gmail.com");
$mail->Subject = "Test 1";
$mail->Body = "Test 1 of PHPMailer.";
if(!$mail->Send())
{
echo "Error sending: " . $mail->ErrorInfo;;
}
else
{
echo "Letter sent";
}
?>
It works perfectly! What the heck?