I have a server that uses Plesk. I have set up a subdomain for testing and am trying to get a script to send an email to my yahoo account. The thing is it won't, no errors, no logs. If I send it to my own domain the email goes through. Anyone with any ideas.

Here's my code
PHP Code:
$subject 'Email Test';  
$email_message 'This is to test sending an email';                              
$headers 'From:contact@mydomain.co.uk' "\r\n"

if (
mail($to$subject$email_message$headers)) {
} else {
now if i change this
PHP Code:
$to      'myemail@yahoo.co.uk'
PHP Code:
$to      'contact@mydomain.co.uk'
it works fine.