mail function not working in ec2 amazon aws php
Just follow instructions below (Tested for ubuntu 10x EC2)
sudo apt-get install php-pear // Install php-pear if not installed
sudo pear install mail
sudo pear install Net_SMTP
sudo pear install Auth_SASL
sudo pear install mail_mime
sudo apt-get install postfix
sudo service apache2 restart