Hello, I am recieving the following errors from scripts trying to send mail. How can I resolve this? I believe its because I have email authentication set before email can be sent. Here is my mail lines from php.ini
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = jwnmedia.com
; http://php.net/smtp-port
smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = [email protected]
; 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
; 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 =
I am using CentOS as the OS. The error I was getting before adding the sendmail path was as follows
mail() [function.mail]: Failed to connect to mailserver at "127.0.0.1" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
After adding sendmail path no error is displayed and no email gets sent. If someone can help me with this I would be grateful.
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = jwnmedia.com
; http://php.net/smtp-port
smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = [email protected]
; 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
; 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 =
I am using CentOS as the OS. The error I was getting before adding the sendmail path was as follows
mail() [function.mail]: Failed to connect to mailserver at "127.0.0.1" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
After adding sendmail path no error is displayed and no email gets sent. If someone can help me with this I would be grateful.