You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
World Wide Web Server edited this page Jul 4, 2012
·
6 revisions
Here's a basic example:
try this out in a controller after dropping the file named imap_pop3.php into the libraries dir:
[code]
$this->load->library('imap_pop3');
// settings for gmail, you must have
// SSL support compiled into PHP
// and turn on POP in gmail
$config['server']='pop.gmail.com:995';
$config['login']='username@gmail.com';
$config['pass']='password';
$config['service_flags'] = '/pop3/ssl/novalidate-cert';
$config['mailbox']='INBOX';
$msg_count = $this->imap_pop3->connect_and_count($config);
$em = $this->imap_pop3->grab_email_as_array(1);
$this->imap_pop3->close();
print_r($em);
[/code]