Bogardo / Mailgun

Mailgun package for Laravel
MIT License
295 stars 114 forks source link

Trying to get property of non-object in Response.php (line 37) #127

Closed kirandg7709 closed 6 years ago

kirandg7709 commented 7 years ago

$resopnse = Mailgun::raw("This is the email body", function ($message) { $message ->subject('Your Invoice') ->to('test@gmail.com', 'Test User') ->trackOpens(true) ->campaign(); });

    print_r($resopnse);exit;

This is my code to send mail using Mailgun using laravel.But i'm getting the following error, Trying to get property of non-object in Response.php (line 37).Please resolve this issue asap.

imadphp commented 6 years ago

Please read this part of the documentation https://github.com/Bogardo/Mailgun#guzzle-6-example-implementation