IMAP SSL with MAMP
OK…super nerd warning on this post….
I am currently attempting to use PHP as a gateway for retrieving my IMAP mail for my Speak to Me/Breathe project, and I hit a MAJOR snag last night. It seems that the version of PHP 5 that currently comes with MAMP is totally not compiled with support for IMAP SSL (secure email connection). I think this is one of the key differences between MAMP and MAMP Pro which costs $70. This is a major bummer for anyone who wants to grab gMail, since they basically require that you use a SSL connection. After about 4 hours of wrestling with my file structure and recompiling both PHP 5 and the IMAP extension about 20 times, I finally figured out how to create a version of the IMAP extension through Terminal (something I’ve never done…). Since I went through all this pain and suffering, I figured I’d share it with everyone so that they don’t have to.
Basically all you need to do is download the attached “imap.so” file and drop it into the following directory:
Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20050922
Thats all there is to it. If you’d rather figure this out on your own I recommend reading the following instruction site, but keep in mind that I had to do a couple different things to get this to work, namely manually creating the “/usr/local/include/” directory in my local Apache PHP directory. You then need to follow comment #5 and copy the compiled files from the OS X Apache directory into MAMPs php extension directory (the one I mentioned above).
Thats all…hope someone can find this useful and avoid the pain I had to go through….
Click Here to Download IMAP SSL extension
Tags: php mamp os x gmail
My mistake. The download link works fine when clicked from the main blog. It doesn’t link to the correct file when viewing the individual entry, however.
Thanks, this is exactly what I was looking for- thanks for saving me the time to compile it myself. FYI the link on this page isn’t right- perhaps it’s relative?
Crap! Thanks i’ll change it to a direct link! Glad you enjoyed it, please spread it around, such a brutal process making that thing
THANKS….. you have saved our new drupal team so much pain, time and $$$ wishing you all the best and great success with your project/s
No Problem, glad it was helpful!
Thanks mate, you saved my bacon
Thanks a lot! Very helpful.
Thanks a lot. It drove me crazy unit I figured out it was because of MAMP library from your your post.
Worked like a charm! THANKS!
Works great! Thank’s :p