Read More
Read More
Menu Close

    How to add an extension (Imap and Mailparse) on Windows, Linux, and Mac

    Get complete instructions about enable the extension on Windows, Linux, and Mac – UVdesk to deliver a better customer support experience.

    Hurry Up to install Free Enterprise Level Open Source Helpdesk! Take a Live Demo for a better understanding.

    Check out UVdesk on Symfony Official Website – Symfony

    IMAP stands for Internet Message Access Protocol. It is an application layer protocol that is used to receive emails from the mail server. It is the most commonly used protocol like POP3 for retrieving emails.

    Start your headless eCommerce
    now.
    Read More

    Mailparse is an extension for parsing and working with email messages. It can deal with rfc822 and rfc2045 (MIME) compliant messages.

    Windows enable the extension on Xampp/Wamp Server:

    • Enable Imap extension:

    For Imap enable on Xampp and Wamp comes with a pre-installed IMAP Extension, you just need to uncomment the IMAP Extension from the php.ini file of the PHP version which you are using, it will enable after restarting the apache services.

    Open php.ini remove (;) at start from extention = imap:

    ;extention = imap

    to

    extention = imap

    image-76

    • Enable Mailparse Extension:

    Note: Every version of PHP have his own mailparse.dll file.

    Below are steps for install mailparse extension:

    1. Download the mailparse.dll file according to your PHP version.

    • PHP version 7.2 Mailparse.dll file from here.
    • PHP version 7.3 Mailparse.dll file from here.
    • PHP version 7.4 Mailparse.dll file from here.
    • PHP version 8.0 Mailparse.dll file from here.
    • PHP version 8.1 Mailparse.dll file from here.

    Note: If mailparse extension updates in the future so please install it from here.

    2. You have to put this mailparse.dll file inside the “\xampp\php\ext\” in case you are using xampp:

    3. Open php.ini –> enable mailparse extension
    put “extension=mailparse” after “extension=mbstring”.

    13-6

    Note: The mailparse extension is loaded after mbstring extension in the php.ini file.

    extension=mbstring

    extension=mailparse

    image-77

    Now, restart the Apache.

    16-6

    • Now we have discussed for Wamp Server to enable extension of mailparse:

    Note: Every version of PHP have his own mailparse.dll file.

    Below are steps for install mailparse extension:

    1. Download the mailparse.dll file according to your PHP version.

    • PHP version 7.2 Mailparse.dll file from here.
    • PHP version 7.3 Mailparse.dll file from here.
    • PHP version 7.4 Mailparse.dll file from here.
    • PHP version 8.0 Mailparse.dll file from here.
    • PHP version 8.1 Mailparse.dll file from here.
    Note: If mailparse extension updates in the future so please install it from here

    2. Now, you have to put this mailparse.dll file inside the “C:\Bitnami\wampstack7.4\php\ext” folder in case you are using wamp

    3. Open php.ini –> enable mailparse extension: “C:\Bitnami\wampstack7.4\php\php.ini” file
    put and uncomment the “extension=php_mailparse.dll” after “extension=php_mbstring.dll”.

    Note: The mailparse extension is loaded after mbstring extension in the php.ini file.

    extension=php_mbstring.dll

    extension=php_mailparse.dll

    Now, the Apache restart.

    For Linux enable the extension:

    • Enable IMAP Extension:

    Run the below command:
    First, install IMAP according to your PHP version using the command on the terminal:

    $ sudo apt-get install php7.2-imap

    or

    $ sudo apt-get install php7.3-imap


    To enable IMAP, run the following command:

    sudo phpenmod imap


    Restart the apache server with the below command:

    sudo service apache2 restart

    • Enable Mailparse Extension:

    Run the below command:

    apt-get install php7.2-mailparse

    Or

    apt-get install php7.3-mailparse

    Or

    pecl install mailparse

    Note: Add “extension=mailparse.so” in php.ini file(/etc/php/7.2 or 7.3/apache2/php.ini) of the PHP version you are using.

    You are finished editing your php.ini file, you will need to restart your Apache server.

    sudo service apache2 restart

    For Mac on MAMP (Mac, Apache, Mysql, and PHP) Server:

    • Enable IMAP Extension:

    MAMP comes with a pre-installed IMAP Extension, you just need to uncomment the IMAP Extension from the php.ini file of the PHP version which you are using, it will enable after restarting apache services.

    • Enable Mailparse Installation:

    Install Mailparse Extension using the below-structured command:

    pecl install mailparse

    After successful execution of the command, you need to add “extension=mailparse.so” in the php.ini file of the PHP version you are using.

    Note:- Sometimes you will not get pre-installed pecl in MAC so in that case you need to install pecl first following the link given below:

    Instruction Link – https://www.lullabot.com/articles/installing-php-pear-and-pecl-extensions-on-mamp-for-mac-os-x-107-lion

    If you are finished editing your php.ini file, you will need to restart your Apache server.

    Thanks for reading me. I hope you’ll get an idea of how to enable the extension on Windows, Linux, and Mac as per requirement, please share your reviews on this, that will support me to write more.

    Are you in trouble? Let’s connect directly to UVdesk developers –

    UVdesk Forum!          Developer Visit!            Contact Us!           Live Demo!

    . . .
    Discuss on Helpdesk

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    Be the first to comment.

    Back to Top