How do I check if the email is RECEIVED by the recipient? In Laravel 5, I try using this method from this question:
$status = Mail::send('blah', $data, function($message) {
// callback function
});
if($status) {
// email is successfully sent
}
else {
// email is not sent
}
But even if the email is invalid, I still got $status = 1
after the code execution. I also have tried Mail::failures()
which contain an array of failed attempt. But it always return 0, which mean all email is succesfully sent.
Is there any other way that I can check whether in Laravel?
OR
is it possible to check if the email is valid using PHP? Since the email is invalid, there is no point to send it.