diff --git a/defaults/main.yml b/defaults/main.yml index fe04da8..9229248 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -12,3 +12,5 @@ php_enable_webserver: true php_webserver_daemon: "httpd" php_enable_php_fpm: false + +php_sendmail_path: "/usr/sbin/sendmail -t -i" diff --git a/templates/php.ini.j2 b/templates/php.ini.j2 index e72a502..cf01c6f 100644 --- a/templates/php.ini.j2 +++ b/templates/php.ini.j2 @@ -966,7 +966,7 @@ smtp_port = 25 ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ; http://php.net/sendmail-path -sendmail_path = /usr/sbin/sendmail -t -i +sendmail_path = {{ php_sendmail_path }} ; Force the addition of the specified parameters to be passed as extra parameters ; to the sendmail binary. These parameters will always replace the value of