How to configure email from a php server using exim4?
Posted on 2007-10-11
I currently have a web server running apache/php. We want to be able to send e-mail through the php command mail(). I was told that you need to install either exim4 or a program similar to that. I am running Ubuntu so I want to the Synaptic packet manager and I downloaded and installed exim4. What I have found out so far is that you need to update the php.ini file in order to be able to do this. I have edited two parts of the php.ini file.
sendmail_path = /usr/sbin/sendmail -t
sendmail_from = email@example.com
I am not sure if that is right, if anyone knows please tell me?
Next I need to be able to configure Exim4 since I have not done that yet. Can anyone tell me how to configure exim4 so that it will work?
I think once I get the php.ini file configured properly and then I get the exim4 stuff set up right it should work. If that is not the case please let me know.