laravel-imap icon indicating copy to clipboard operation
laravel-imap copied to clipboard

Undefined index: host

Open hsleewis opened this issue 7 years ago • 2 comments

Installed it as in the instructions, but I keep getting this error:

ErrorException in Client.php line 81: Undefined index: host

It looks like the config/imap.php is ignored completely, any ideas?

hsleewis avatar Apr 01 '17 12:04 hsleewis

same problem ! i used this to solve it in my case:
$config = config('imap'); $client = new Client($config['gmail']);

lamkasmourad avatar Apr 11 '17 13:04 lamkasmourad

I tried this.

$config = config('imap'); $client = new Client($config['gmail']);

But got another error: Illegal string offset 'host'

So I changed it to this, and it seems to work. $config = config('imap'); $client = new Client($config['accounts']['default']);

yangfuzhang avatar Jul 19 '17 07:07 yangfuzhang