[!--quoteo(post=388470:date=Jun 27 2006, 08:17 AM:name=AndyB)--][div class=\'quotetop\']QUOTE(AndyB @ Jun 27 2006, 08:17 AM) [snapback]388470[/snapback][/div][div class=\'quotemain\'][!--quotec--] On the first server, register_globals is ON (old, outdated, potentially dangerous), whereas on the second server register_globals is OFF. The difference is that on the second server you need to retrieve information passed (by URL or form) from the $_GET or $_POST array rather than just expecting the variables to be there. For example: [code]<?php $my_name = $_POST['my_name']; // retrieve my_name via POSTed form[/code] [/quote] that I was aware off, but I dont believe any of that actually impacts this code, since im not referencing variables nor using global variables, in it , this is the exact code [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--][code]$to = 's.llanos@royalmotorspr.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); if ( mail ( $to, $subject, $message, $headers ) ){ echo "email has been sent<br><br>"; }else{ echo "email <strong>hasnt</strong> been sent<br><br>"; } echo phpinfo ( ); [/code][/quote]