I need to know if PHPMailer was unable to send an email. But even sending to a fake email address returns true
:
$phpmailer = new PHPMailer( true );
$phpmailer->setFrom( "myemail@myemailladdy.com", "myemail@myemailladdy.com" );
//This is definitely not reachable
$phpmailer->addAddress( "fake@shdsabdasdiuahsdiuhaiduhasidsjdfake.com", "IJustPressedRandomKeys" );
$phpmailer->Subject = "fake";
$phpmailer->Body = "fake";
echo "Is Mail: " . $phpmailer->IsMail();
//This prints "1"
echo "Was Sent: " . $phpmailer->send();
Why is this returning 1/true?
(When the email is valid, I do recieve the emails, so PHPMailer is setup correctly)