sendmail - Get notified when Email content invalid or mail is not delievered in php using sendgrid API -


we sending 1 lac email daily using sendgrid api.

but happen thousand of mail undelievered recipient.

we want list of these undelievered mail. how possible ?

please suggest idea or links. becouse lost , appreciate assistance.

thank you.

wow..! made it...

curl code-

       curl -x              https://sendgrid.com/api/bounces.get.json?api_user=undefined&api_key=xxxxxxxx 

and here php code

       $ch =curl_init('https://sendgrid.com/api/bounces.get.jsonapi_user=10timeslocal&api_key=10timeslocal');        curl_setopt($ch, curlopt_returntransfer, true);        curl_setopt($ch, curlopt_customrequest, "get");        curl_setopt($ch, curlopt_postfields, $data);        $response = curl_exec($ch); 

thanks lot tried solve this.


Comments

Popular posts from this blog

javascript - Wordpress slider, not displayed 100% width -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -