Piki wrote:
As long as the other php settings below the include are already in your fastcgi_params file that's being included, having those there is a bit redundant.
The code I have there is not found in the fastcgi_params file.
I think the mail function is installed. Here's what I found in my php.ini:
Code:
[mail function]
; For Win32 only.
; http://www.php.net/manual/en/mail.configuration.php#ini.smtp
SMTP = localhost
; http://www.php.net/manual/en/mail.configuration.php#ini.smtp-port
smtp_port = 25
; For Win32 only.
; http://www.php.net/manual/en/mail.configuration.php#ini.sendmail-from
;sendmail_from = me@example.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://www.php.net/manual/en/mail.configuration.php#ini.sendmail-path
sendmail_path = /usr/sbin/sendmail -t -i
; 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
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
; Add X-PHP-Originaiting-Script: that will include uid of the script followed by the filename
mail.add_x_header = On
; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log =
I also added to the script
Code:
$mail_sent = mail($to,$email_subject,$email_body,$headers);
echo $mail_sent ? "Mail sent" : "Mail failed";
to see if it sends the mail or not, and it says "Mail sent"...
These are the php modules I have installed:
Quote:
php-5.3.8-5.el6.remi.i686
php-mysql-5.3.8-5.el6.remi.i686
php-pear-1.9.0-2.el6.noarch
php-pdo-5.3.8-5.el6.remi.i686
php-fpm-5.3.8-5.el6.remi.i686
php-pecl-apc-3.1.3p1-1.2.el6.1.i686
php-common-5.3.8-5.el6.remi.i686
php-cli-5.3.8-5.el6.remi.i686
php-devel-5.3.8-5.el6.remi.i686
Also in the maillog file something useful (hoopycat):
Quote:
Nov 5 17:32:39 li310-155 postfix/postdrop[14513]: warning: unable to look up public/pickup: No such file or directory
No idea what that means! :p