From 26c517575632788e4c703987e1b814cd93c59f1f Mon Sep 17 00:00:00 2001 From: Rich Allen Date: Mon, 23 Jun 2014 15:04:10 -0400 Subject: [PATCH] adding a sendmail path variable incase you wanted to set up something like mailcatcher or non-standard mail config" --- defaults/main.yml | 2 ++ templates/php.ini.j2 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index e56faec..6e818f6 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 + +sendmail_path: "/usr/sbin/sendmail -t -i" diff --git a/templates/php.ini.j2 b/templates/php.ini.j2 index e72a502..e7c058c 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 = {{ 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