I am wondering if there is anyone out there who can give me a very detailed set of instructions to get mail() working on my development PC. This follows on from my previous question [PHP MAIL()].
My PC is setup as follows:
PHP is version 4.
MySQL is version 3.
IIS is version 6.
SMTP is running as a Service.
I am writing a script which uses the mail() function, but it just gives me this error message:-
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() in c:\inetpub\wwwroot\tullah\users\register.php on line 120
My php.ini contains the following:
[mail function]
; For Win32 only.
SMTP =localhost
smtp_port = 25
; For Win32 only.
;sendmail_from = me@example.com
sendmail_from = terence.mold@ntlworld.com (My own email address)
Something obviously isn't working, but as this is my first attempt at using mail(), I need a bit of a push in the right direction? It would be great if someone could give me a blow-by-blow set of instructions on how to get this working.
Also, the server on which this code will ultimately be run from is using SquirrelMail?
Thanks in advance
Terry