My form functions fine, including uploads, however the test alert does not- so I cannot know if there is an error when someone uses the form.

I ran 'testmail.php' and recieved the test email ok. But the testing function built into the main php script doesn't work any more.

I have recently moved hosts so I don't know if that might have anything to do with it- I have no anti-spam measures set up for that email account so it cannot be getting caught there.

Does anyone have any ideas? This is my code:

define("EMAIL_NAME","^[-a-z0-9.]+"); // the '^' is an important security feature!
/* Help: http://www.tectite.com/fmdoc/target_email.php XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/
$TARGET_EMAIL = array(EMAIL_NAME."@visualeyes\.co\.uk$");
/* Help: http://www.tectite.com/fmdoc/def_alert.php XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/

The XXXXXs are mine- just so I can see these lines easily in the script.
The line 'prefix@mydomain.co.uk' actually contains my email address.

I am lost. Any pointers will be appreciated...