I created a simple PHP file to handle a form and send it from a contact page to the admin of a site. It worked great on my own test server (running Windows Server), but when I transferred it to another Windows Server based machine it stopped working. I've double checked and all resources are there (I copied EVERYTHING). Everything else on the site works fine - it even gives me the success message when I press 'Send'. Anyone know what could be going wrong? The new server is on Domain.com, could they have turned something off that disables the PHP script?
Check with your hosting company's support. They may not permit emailing from within your site. Depending on just how they do that your script may well think that the message was sent, even though it never leaves the system. Also check that the message hasn't been swallowed by your spam filter.
The mechanism used for sending mail is configured in you server's
php.ini
file. Check to see what mechanism the server is using, and whether that mechanism works. For example, if you're using SMTP to "localhost", make sure that you're also running a local SMTP server that allows you to relay your outbound mail.EDIT
Find out from the hosting provider what the preferred way to send mail from PHP is. They should have instructions appropriate for their hosting environment. It may involve a call or two to ini_set.
To test, just create a simple page like this, and test to make sure you get the mail.