PDA

View Full Version : imap_mail, php5 on Ubuntu Edgy



ozpak
June 6th, 2007, 11:47 PM
Hey all

I am relatively new to LAMP setups so bear with me...

I need to get imap_mail operational on Ubuntu Edgy / php5 / apache2.

I currently receive an error message:

Fatal error: Call to undefined function imap_mail() in (filepath deleted).php on line 83

I know I have not configured anything to do with imap_mail - but I can't seem to find any how-to's - any ideas?

ozpak
June 7th, 2007, 12:10 AM
Well that was easy:

At terminal:

1. apt-cache search imap | grep php

This gave me a list of available packages of which php5-imap was one...

2. sudo apt-get install php5-imap

Installed all good - now restart apache2...

3. sudo /etc/init.d/apache2 restart

Code now working just need to set correct smtp details in php.ini I guess