Reputation: 712
I am trying to access my gmail account through my localhost. However, I am getting the response:
Fatal error: Call to undefined function imap_open()
Can someone point out what should I do to resolve the issue?
My Code.
$imap = imap_open('{pop.gmail.com:995/pop3/ssl/novalidate-cert}INBOX','[email protected]','xxxxxxx3');
Upvotes: 1
Views: 3045
Reputation: 36
With phpinfo(), you should make sure that php has installed imap model.
Check your php.ini to ensure you have installed imap correctly.
Upvotes: 0
Reputation: 1646
Who works with NT systems, can open the file "\xampp\php\php.ini"
to active the php exstension
by removing the beginning semicolon at the line ";extension=php_imap.dll"
. Should be: extension=php_imap.dll
Upvotes: 1