Setup is Windows XP with apache. Had ISPs SMTP server set in php.ini but the mail() gave an error and mail would never send. So I setup MS SMTP Virtual Server on my computer, and changed the smtp server in php.ini to localhost.
The SMTP virtual server is working perfectly when tested through outlook express with the outgoing server as localhost. But when sending mail through mail(), I get a success message back from my php script but the email is stuck in the queue folder of the SMTP server. After an hour the email arrives at the destination, but when using the server through outlook it works perfectly with no delays
What could the problem be? Is it a php coding issue or a problem with my mail server?