mirror of
https://github.com/bcit-ci/CodeIgniter.git
synced 2025-02-20 11:13:29 +08:00
changed from imap_pop3 to imap_pop
parent
0b46bf1971
commit
9d2f7fcd1f
@ -3,7 +3,7 @@ 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');
|
||||
$this->load->library('imap_pop');
|
||||
// settings for gmail, you must have
|
||||
// SSL support compiled into PHP
|
||||
// and turn on POP in gmail
|
||||
@ -12,9 +12,9 @@ $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();
|
||||
$msg_count = $this->imap_pop->connect_and_count($config);
|
||||
$em = $this->imap_pop->grab_email_as_array(1);
|
||||
$this->imap_pop->close();
|
||||
print_r($em);
|
||||
[/code]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user