nahid / imapx

imapx is php library for laravel 5. Its retrieve all emails from server via imap or pop
MIT License
11 stars 8 forks source link

Problem with library #1

Open rhyudek1 opened 9 years ago

rhyudek1 commented 9 years ago

Hello,

I follow all the mentioned steps and get an exception

Call to undefined method Nahidz\Imapx\Imapx::connect()

if(config('imapx.auto-connect')){
    $this->connect();
}

regards

nahid commented 9 years ago

Do you use it in your laravel project

rhyudek1 commented 9 years ago

Yes, and I followed the steps mentioned here http://nahid.co/diary/read/8

nahid commented 9 years ago

please those line in Imapx.php filee

function connect()
    {
        $this->stream=imap_open('{'.$this->hostname.$this->port.'/'.$this->driver.$this->ssl.$this->novalidate.'}INBOX',$this->username,$this->password) or die('Cannot connect to Server: ' . imap_last_error());

        if($this->stream)
            $this->isConnect = true;
    }
nahid commented 9 years ago

please add those line in Imapx.php file

function connect()
    {
        $this->stream=imap_open('{'.$this->hostname.$this->port.'/'.$this->driver.$this->ssl.$this->novalidate.'}INBOX',$this->username,$this->password) or die('Cannot connect to Server: ' . imap_last_error());

        if($this->stream)
            $this->isConnect = true;
    }

I think it will work fine

rhyudek1 commented 9 years ago

great ! it's working.. thanks a lot ... can you insert those lines in a next release?

nahid commented 9 years ago

yap, Its mistake. I just fix it in tomorrow :) thanking you to find out it