Welcome Guest, Not a member yet? Register   Sign In
imap pop library
#1

[eluser]vile[/eluser]
Hi,

Im having problem with imap pop. Iam using xampp mercury mail.

Here's the error
Code:
Message: Undefined variable: email_array
Filename: libraries/imap_pop.php

Here's the controller code. I just copied the sample code but still it won't work.
Code:
function index()
    {
      
        $this->load->library('imap_pop');
        $config['server']='localhost:110';
        $config['login']='test';
        $config['pass']='test';
        $config['service_flags'] = '/pop3/notls';
        $config['mailbox']='INBOX';
        $connected = $this->imap_pop->connect_and_count($config);
        if($connected)
        {
            $em = $this->imap_pop->grab_email_as_array(0);
            $this->imap_pop->close();
        
        }
        print_r($em);

    }


Can anyone help me solve this. THanks!
#2

[eluser]vile[/eluser]
solved Big Grin
#3

[eluser]sammaeliv[/eluser]
[quote author="vile" date="1259766687"]solved Big Grin[/quote]

HOW?




Theme © iAndrew 2016 - Forum software by © MyBB