We have to send bulk emails using sendgrid smtp emails, issue is when email's having dummy account or not hosted / not exists email, sendgrid account is deducting email counters from my balance emails,
how to ensure / get details of all emails which are not sent,
we have tried
$cl_email = new SendGrid\Email();
$cl_email->setFrom($sysEmail);
$cl_email->setFromName($sysCompany);
$cl_email->setTos($user_email);
$cl_email->setSubject($subject);
$cl_email->setHtml($message);
$response = $sendgrid->send($cl_email);
You can use the invalid emails API endpoint and the bounces API endpoint to get the emails that are bouncing or are invalid, then you can remove them from your list. Or you can use the event webhook and then handle the bounces as they happen.