Roland Seuhs Roland Seuhs - 1 year ago 66
PHP Question

Use php mail() function with custom exim installation

I have an exim installation in a non-standard path.

How can I configure php so that mail() will use it?

Answer Source

The solution is to change the value of the "sendmail_path" variable in php.ini:

sendmail_path="/my_custom_path/exim -t -i"

exim is compatible to sendmail when it comes to command line arguments