Hi
I am trying to create a simple login script, a bit like that used on this site, which will email someone who is creating a New Account. I have used the three variables for MAIL() such as mail($fromEmail, $Subject, $Message.
Whenever I test the script using the first example above, I get 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
Does anyone know what I am doing wrong here?
Thanks