I think I can see the problem. I have changed it to what you reccommended. The problem has been around whether i do it locally on the testing server or I do it remotely. If I do it remotely it works.
However when i tried to do it locally I got a strange error message about junk mail! Unfortunately I did not save it for you to see as i was a bit panicked. I decided to put the php.ini values back to what they were originally.
So i changed them from:
[mail function]
SMTP = mail.eukhost.com
port = 25
For win32 only
sendmail_mail from = niknbren@btinternet.com
To
[mail function]
SMTP = localhost
port = 25
For win32 only
sendmail_mail from = niknbren@btinternet.com
however now when i try it locally (to test it before I upload it I get this error message:
Warning: 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\louandel3\testingphp\sendMail.php on line 24
So im a little bit confused now why it wont work on the testing server.
thanks
cass27