Rana Aalamgeer
Rana Aalamgeer

Reputation: 712

Fatal error: Call to undefined function imap_open() in \htdocs\assists.php on line 2

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

Answers (2)

Panda
Panda

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

Rafiqul Islam
Rafiqul Islam

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

Related Questions