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