[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!