title: Using PHP mail( )
body: <p>I have a php mail script which works perfectly on a one host. However, when I attempt to use the same script on a network solutions host, the function returns true but no email ever sends. </p>
  
  <pre><code>//get mail function data
  $case = $_POST['case'];
  $to = addslashes(strip_tags($_POST['to']));
  $message = addslashes(strip_tags($_POST['message']));
  $subject = addslashes(strip_tags($_POST['subject']));
  $message = addslashes(strip_tags($_POST['message']));
  $from = "confirmation@website.co";
  $headers = "From: $from\r\n";
  
  //send email
          if (mail($to,$subject,$message,$headers)){
              //formatting for error message
              $emailSent = "block";
              $emailFailed = "none";
          }
          else //if the email fails to send
          {
  
              $emailSent = "none";
              $emailFailed = "block";
          }
  ?&gt;
  </code></pre>
  
  <p>Does anyone know if different hosts require specific info in mail script?</p>