Not too sure if this is right but I'll give it a go...
If you are running your file from a localserver then you need to access your php.ini file. Within the file you will find:
Code:
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from = me@example.com
You need to correct it so your SMTP = mail.yourISP.com.
(yourISP is the name of your Internet Service Provider eg. mail.optusnet.com.au)
Otherwise, if you are running from a host, then they will be the ones who have access to the php.ini file and it should be configured for you.
Hope this helps...(I could be wrong so don't take it as gospel)
Bookmarks