Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

452
Visualizações
Install php Imap on mac os sierra and MAMP

Im trying to edit a web app on my local host and I am getting the following error: Call to undefined function imap_open()

I believe this is because I may not have imap installed or activated on my localhost. I am currently running Mac OS Sierra and MAMP (not MAMP Pro)

I find some things online for older versions of Mac OS or using Brew but I don't use brew, is this necessary to get imap working on my setup? Can someone help me so I don't run into these imap issues?

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

I also had extension=imap.so set in the PHP.ini file, but IMAP still wasn't supported. I finally found what worked for me and hopefully will for your situation as well.

The next thing to make sure of is that extension_dir is correctly set in the same PHP.ini file. Mine was set to MAMP_extension_dir_MAMP. I didn't see where this variable was set. I replaced it with "/Applications/MAMP/bin/php/php5.3.29/lib/php/extensions/no-debug-non-zts-20090626/" and now when I look up phpinfo() page I see that IMAP is enabled.

replace php5.3.29 with your php version and no-debug-non-zts-20090626 with whatever folder name you see in the extensions folder.

over 4 years ago · Santiago Trujillo Relatório

0

It's an old question but this might help someone.

use <?php phpinfo(); ?> to checkout if the following files point to the same path. Also the php.ini has the line of extension=imap.so uncommented. And finally, in the Additional .ini fields parsed you should see the IMAP location, if there is nothing there, it means that php isn't loading the IMAP.

In my case I run this in the terminal to fix it:

brew tap kabel/php-ext
brew install php-imap
brew install php@7.1-imap
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda