I want to use my LAMP Stack[Ubuntu 12.04 x64] server to send mails on the php mail() function. How do I set up my send mail, I have seen that the function does not work.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
You just need to install an MTA. Sendmail listens on the loopback interface by default so you should be fine with the default configuration: <br><pre>sudo apt-get install sendmail</pre>
Here you go… <br>https://digitalocean.com/community/articles/how-to-set-up-a-postfix-e-mail-server-with-dovecot