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( "[email protected]", "[email protected]" );
//This is definitely not reachable
$phpmailer->addAddress( "[email protected]", "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)