title: Contact form emails arriving at personal address but not to domain address
body: <p>I'm trying to fix this problem but struggle to. There is a very basic PHP contact form on the website and if I try with a personal address ****@gmail.com the emails are received. However, I don't receive the emails on *****@yahoo.co.uk neither on ********@mydomain.co.uk . I really don't know what could be the problem, I will leave the code down below:</p>
  <pre><code>// Website Contact Form Generator 
  // http://www.tele-pro.co.uk/scripts/contact_form/ 
  // This script is free to use as long as you  
  // retain the credit link  
  
  // get posted data into local variables
  $EmailTo = &quot;angjeljanev@gmail.com&quot;;
  $Subject = &quot;Contact form&quot;;
  $name = Trim(stripslashes($_POST['name'])); 
  $email = Trim(stripslashes($_POST['email'])); 
  $telephone = Trim(stripslashes($_POST['telephone'])); 
  $enquiry = Trim(stripslashes($_POST['enquiry'])); 
  
  
  /*SMTP authentication
  $mail-&gt;SMTPAuth = true; 
      $mail-&gt;IsSMTP();
      $mail-&gt;Host = &quot;mail.londondoorstripping.co.uk&quot;; // SMTP server
      $mail-&gt;Username = &quot;info@londondoorstripping.co.uk&quot;;
      $mail-&gt;Password = &quot;Doorstripping123&quot;;
      $mail-&gt;SMTPSecure = 'tls';   
      $mail-&gt;Port = 25; 
  //------------------
  */
  
  $target_dir = &quot;contact/&quot;;
  $target_file = $target_dir . basename($_FILES[&quot;fileToUpload&quot;][&quot;name&quot;]);
  $uploadOk = 1;
  $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
  // Check file size
  if ($_FILES[&quot;fileToUpload&quot;][&quot;size&quot;] &gt; 900000) {
      echo &quot;Sorry, your file is too large.&quot;;
      $uploadOk = 0;
  }
  
  // Check if $uploadOk is set to 0 by an error
  if ($uploadOk == 0) {
      echo &quot;Sorry, your file was not uploaded.&quot;;
  // if everything is ok, try to upload file
  } else {
      if (move_uploaded_file($_FILES[&quot;fileToUpload&quot;][&quot;tmp_name&quot;], $target_file)) {
          echo &quot;The file &quot;. basename( $_FILES[&quot;fileToUpload&quot;][&quot;name&quot;]). &quot; has been uploaded.&quot;;
      } else {
          echo &quot;Sorry, there was an error uploading your file.&quot;;
      }
  }
  
  
  
  
  
  // validation
  $validationOK=true;
  if (Trim($name)==&quot;&quot;) $validationOK=false;
  if (Trim($email)==&quot;&quot;) $validationOK=false;
  if (Trim($enquiry)==&quot;&quot;) $validationOK=false;
  if (!$validationOK) {
    print &quot;&lt;meta http-equiv=\&quot;refresh\&quot; content=\&quot;0;URL=error.htm\&quot;&gt;&quot;;
    exit;
  }
  
  // prepare email body text
  $Body = &quot;&quot;;
  $Body .= &quot;www.londondoorstripping.co.uk/contact/&quot;. basename( $_FILES[&quot;fileToUpload&quot;][&quot;name&quot;]);
  $Body .= &quot;\n&quot;;
  $Body .= &quot;Name: &quot;;
  $Body .= $name;
  $Body .= &quot;\n&quot;;
  $Body .= &quot;Mobile number:&quot;;
  $Body .= $telephone;
  $Body .= &quot;\n&quot;;
  $Body .= &quot;Email:&quot;;
  $Body .= $email;
  $Body .= &quot;\n&quot;;
  $Body .= &quot;Message: &quot;;
  $Body .= $enquiry;
  $Body .= &quot;\n&quot;;
  
  // send email 
  $success = mail($EmailTo, $Subject, $Body, &quot;From: &lt;$email&gt;&quot;);
  
  // redirect to success page 
  if ($success){
    print &quot;&lt;meta http-equiv=\&quot;refresh\&quot; content=\&quot;0;URL=thankyou.htm\&quot;&gt;&quot;;
  }
  else{
    print &quot;&lt;meta http-equiv=\&quot;refresh\&quot; content=\&quot;0;URL=error.htm\&quot;&gt;&quot;;
  }
  ?&gt; ```
  </code></pre>