Skip to content
This repository has been archived by the owner on Dec 22, 2019. It is now read-only.

Emails are not being sent or received. #160

Closed
saffabook opened this issue Sep 28, 2019 · 0 comments
Closed

Emails are not being sent or received. #160

saffabook opened this issue Sep 28, 2019 · 0 comments

Comments

@saffabook
Copy link

saffabook commented Sep 28, 2019

Hi there.

I have installed and followed instructions as directed, everything fires and seems to work, however no emails are being sent or received. I am using sandbox settings locally.

I have this as a test

Mailgun::raw("This is the email body", function ($message) {
       $message->to('mytestemail@gmail.com', 'John Doe')->subject('Welcome!');
});

I had a look to see if its running and had a look at the mailer.php and the response is as below.

$response = new Response($this->mailgun->post("{$domain}/messages", $message, $files));
object(Bogardo\Mailgun\Http\Response)#306 (4) {
  ["status"]=>
  int(200)
  ["data"]=>
  NULL
  ["message"]=>
  string(0) ""
  ["id"]=>
  string(0) ""
}

I have all the correct details in the .env file too, the mailgun set up also correct. I am wondering (and forgive my ignorance) but perhaps I might have missed something on this section.

$this->app->bind('mailgun.client', function() {
    return \Http\Adapter\Guzzle6\Client::createWithConfig([]); // what Guzzle6 configuration would I need?
});

PS. I have tried this for Guzzle settings

return \Http\Adapter\Guzzle6\Client::createWithConfig([
    'headers' => [
        'Content-Type' => 'application/x-www-form-urlencoded'
    ]
]);

I appreciate your help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant