Do you have a question? Post it now! No Registration Necessary. Now with pictures!
November 6, 2004, 7:25 pm
rate this thread
I test mail("firstname.lastname@example.org", "My Subject", "Line 1\nLine 2\nLine
which produces error:
Warning: mail(): Failed to connect to mailserver at "localhost" port 25,
verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
I am trying to play with relevant settings in php.ini
SMTP = localhost
SMTP_PORT = 25
SENDMAIL_FROM = NULL
SENDMAIL_PATH = H:\WINNT\system32\sendmail.dll
re-booting the PC every time, but changes do not seem to affect the error.
If I delete everything from php.ini the code which extract data from
database and displays it still works, but mail() produces a different error
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header
missing in ...
Same error happens if I rename php.ini
It looks like PHP works without php.ini and takes some default settings from
Is this correct?