The Wayback Machine - https://web.archive.org/web/20240811145352/https://www.geeksforgeeks.org/how-to-install-imap-extension-in-php-on-windows/
Open In App

How to Install imap extension in PHP on Windows?

Last Updated : 05 Jan, 2022
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

IMAP stands for Internet Message Access Protocol. It is an application layer protocol. PHP-IMAP is used to efficiently access messages from the IMAP server. IMAP stores email on the server and can download on-demand. To access the IMAP server we have to use PHP IMAP extension, now using this extension we can execute several operations to get different parts of the message. Or we can say that it acts as an intermediary between client and email servers. It was designed by Mark Crispin in 1986 as a remote access mailbox protocol. Some important features of IMAP are:

  • Connects to the mailbox like POP3, IMAP, NNAP, etc.
  • Returns mailbox information
  • Read e-mails including attachments
  • Save attachments from remote IMAP server locally.
  • Also, mark emails are seen or unseen

Prerequisites:

  • Install XAMPP.
  • Verify if IMAP is already installed or not.

Verifying IMAP is installed or not

To verify the IMAP extension is installed or not you have to follow the following step:

Step 1: Create a new file in the root directory with an extension.php like findingexten.php. In this file write the following code:

<?php

// It will return all the configurations of the server
phpinfo();
?>

Step 2: Run this file in any browser and you will see the IMAP is installed or not.

Installing imap extension in PHP on Windows

There are many ways to install an IMAP extension. Following is one of the ways of installing IMAP.

Step 1: Click on the Config button and open php.ini in your editor.

Click-on-Config

Step 2: Find “;extension=imap” in the file and remove the semicolon from it and then save the file.

 Find -;extension=imap-file

Step 3: Go to php folder in your system. It is usually present in C:\xampp.

Go-to-php-folder

Step 4: Look for php_imap.dll in the ext folder.

Go-to-ext-folderCopy-php_imap.dll-file

Step 5: Copy php_imap.dll and paste it into the following folder.

C:\Windows\System32

Paste-the-.dll-file-in-System32

Step 6: Now restart the XAMPP server to see the effects.



Similar Reads

How to Install imap extension in PHP on Linux?
The Internet Message Access Protocol (IMAP) is an application layer protocol that allows a client to efficiently access emails from anywhere. It stores email on the server and can download on-demand. It is like an intermediary between client and email servers. It was designed by Mark Crispin in 1986 as a remote access mailbox protocol and the curre
3 min read
How to Install IMAP Extension in PHP on MacOS?
Imap stands for Internet Message Access Protocol, It is a protocol used by email clients to retrieve email messages from mail servers, It is an application layer protocol in the OSI model. Imap allows us to store our messages on servers so that they can be accessed from multiple devices, whereas POP(Post office Protocol) downloads and then deletes
4 min read
How to get emails using PHP and IMAP ?
Reading emails from the Gmail account using PHP will be an enriching task for web developers for its simplicity of code through IMAP (Internet Message Access Protocol). Sometimes there can be a requirement in web projects or from a client that needs the complete management of inbox emails or access to email contents from his Gmail account. This fea
5 min read
How to enable PHP's openssl extension to install Composer ?
To perform the secure HTTPS transfers you will need to enable the openssl extension then you have to install the composer. In this article, we will cover the enabling openssl for XAMPP as well as WAMP one by one then we will install the composer. Enable openssl extension on XAMPP Enable openssl extension on WAMP Installation of Composer Enable PHP’
3 min read
How to install the ext-curl extension with PHP 7 ?
The ext-curl CURL stands for client user, In Linux cURL is a PHP extension, that allows us to receive and send information via the URL syntax. And ext-curl is the extension in the latest PHP-7 which is loaded with some of the advanced features of the basic curls. The following are the steps to add ext-curl extension in Ubuntu - 1. Update the Extens
1 min read
How to Install PHP intl extension in Ubuntu?
The Internationalisation (Intl) extension is a wrapper for the ICU library, a collection of C/C++ and Java libraries that provide Unicode and Globalisation support for software applications. It tends to closely follow ICU APIs so that people having experience working with ICU in either C/C++ or Java could easily use the PHP API. Intl consists of se
2 min read
How to Install PHP Extension in Ubuntu?
PHP extensions are compiled libraries that allow you to use special functions in your PHP code. PHP extensions can be compiled statically in PHP or dynamically loaded at the time of execution. By using extensions, you can prevent the need to recreate the same code for many applications. To use an extension, all you need to do is connect it to the P
2 min read
How to Install PHP Extension in cPanel?
PHP (Hypertext Preprocessor) is known as a broadly useful prearranging language that can be utilized to foster dynamic and intelligent sites. It was among the main server-side dialects that could be inserted into HTML, making it more straightforward to add usefulness to pages without expecting to call outer records for information. A PHP expansion
1 min read
How to Install PHP Soap Extension?
PHP is a general-purpose scripting language that is mainly used for Web development to built dynamic and interactive web pages. Because of its free availability and efficiency, it is widely used among web developers. It has many extensions to get and use web services to make the website more interactive. One of the famous php extension is the SOAP
3 min read
How to Install bcmath extension of PHP on CentOS?
PHP offers various extensions to deal with different cases. BCMath is one of the PHP extensions which is an interface to the GNU implementation as a library of the Basic Calculator that deals with float values in PHP. This extension helps in implementing the function related to mathematics on the production server without any arbitrary precision er
2 min read
three90RightbarBannerImg