# Same code, different servers

**URL:** <https://forum.kirupa.com/t/same-code-different-servers/195972>\
**Category:** programming\
**Created:** [August 4, 2006, 10:12am UTC](https://forum.kirupa.com/t/same-code-different-servers/195972 "2006-08-04T10:12:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![onemhunki](https://avatars.discourse-cdn.com/v4/letter/o/c57346/32.png) [@onemhunki](https://forum.kirupa.com/u/onemhunki)\
**Post date:** [August 4, 2006, 10:12am UTC](https://forum.kirupa.com/t/same-code-different-servers/195972/1 "2006-08-04T10:12:46Z")

</div>

Folks,

I have the simplest of php mail scripts, works perfectly fine on my testing server, but exactly the same file, doesn’t work on the clients server. I know other php scripts are working on the server, but not this one. Any ideas why there would be a difference?

```php

<?php
$to = 'myemail@myaddress.com';
$subject = 'email test';
$body = 'this is an email from the testing server';
$headers = 'From: myemail@myaddress.com' . "
";
$headers .= 'Cc: anotheremail@myaddress.com' . "
";
$headers .= 'Reply-To: myemail@myaddress.com' . "
";

mail($to, $subject, $body, $headers);

?>

```
