Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed Ubuntu 12.04 as a KVM virtual machine host. I selected SSH and lamp. All work nice. I copy all the files from my old website to this new server to test. All work as expected but the email doesn’t work. I have a form where user types his/her email, click send and email is sent. This works in the old server. I make sure I installed all pear packages needed

sudo apt-get install php-pear sudo pear install mail sudo pear install Net_SMTP sudo pear install mail_mime

I changed the php.ini file so I can see any kind of errors. Then I looked on Apache log files for any kind of hint but nothing found. No errors no complaints.

Firewall is disabled.

Can anyone please tell me what would I need to do to enable Ubuntu 12.4 server send email using pear packages with php. Code works in Ubuntu 10.04 LTS.

note: This new server is a virtual machine. I has access to the internet and I can access it using http. Connectivity is not a problem.

I also noticed that I have these. Which php.ini file should I use?

find / -name php.ini /etc/php5/cli/php.ini /etc/php5/apache2/php.ini

Thanks for you help

share|improve this question

You must log in to answer this question.

Browse other questions tagged .