Hi all,
I have a simple contact info form written which when submitted sends the info to a php script which is supposed to then email on the details. The problem is that I can't seems to get the mail function to work correctly. I have php running on iis7 and have configured smtp email as per the windows website. When I tried running the following scripts it produces an error!
`<?php
if(mail('franklenehantesting@gmail.com', 'Test email from localhost', 'This works great!!'))
echo 'Mail Sent';
else
echo 'Error, something is wrong.';
?>`
Could anybody please shed some light on this situation for me, as I'm kinda at a lose at the moment!?