how to check if the mail I have sent from laravel has been delivered to recipient or not?

I have searched the entire intenet but found nothing of my problem. I am using laravel 10 for my project to send bulk mail. Laravel is sending the mails to the provided mail. But the problem is that
is there any way to check the status of a mail delivered successfully to the recipient or not ?

I found solutions in many forums telling that to use Mail::failures(). But this method is not available in laravel anymore. So what is the proper way to get the status of the mail delivered to the recipient mail or not ? Please help.

My code in controller:

try {
            foreach ($emails as $key => $email) {


                $result = Mail::to($email)->send(new MarketingMail($email_content));
            }
            
        } catch (Exception $e) {
            return response()->json([
                'message' => 'Email not valid',
                'status' => 500
            ], 500);
        }

  • As I know, in Laravel, you can’t check mail delivered.

    – 

  • What email provider are you using? Some of the email providers eg: Mailgun, Mailchimp, etc already provides these reports in their portals. Email system delivery is kind of complex. There are also cases of email bounce or invalid addresses, these providers have handled this well.

    – 

  • I am using smtp.

    – 

Leave a Comment