If you’re using XAMPP on Mac, you can use the Windows guide as shown above to enable the IMAP extension. Conclusion The PHP error: Call to undefined functionimap_open()occurs when you don’t have the IMAP extension activated in your PHP installation. To solve the error, you need to en...