Hi all, im creating a mail form in PHP and I got back the following message in when testing:
mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\ema il_script.php on line 38#
As you can tell from the localhost reference I am using a server on my own computer for testing purposes.Is this the only reason why it wont work or can it actually be fixed by changing the port settings in the php.ini file? If so does anyone have any idea how I would do this, I dont know anything about port numbers so im stumped.
In reference to the latter part of the error message I substituted the 'mail' command for the ini_set() reference but just got a parse error on line 38# message.
Thanks in advance,
Martin
mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\ema il_script.php on line 38#
As you can tell from the localhost reference I am using a server on my own computer for testing purposes.Is this the only reason why it wont work or can it actually be fixed by changing the port settings in the php.ini file? If so does anyone have any idea how I would do this, I dont know anything about port numbers so im stumped.
In reference to the latter part of the error message I substituted the 'mail' command for the ini_set() reference but just got a parse error on line 38# message.
Thanks in advance,
Martin
Comment