title: Mail is sent but never arrives anywhere
body: <p>I got a mailscript which sends the mail (since <code>$mail-&gt;send()</code> returns true) and I also got headers which are all looking fine. No error is being shown so I am assuming everything is working, but somehow my mail never arrives anywhere. Not on gmail and not on outlook. What could be the issue? I have sent some test mails from another domain on the same server which works fine.</p>
  
  <p>The domain I am sending from is brand new so I doubt it is blacklisted or something similair.</p>
  
  <p>My html form:</p>
  
  <pre><code>&lt;form id="contact-form" class="contact-form" method="post" action="mail/mail_send.php" role="form"&gt;
      &lt;div class="error-container"&gt;&lt;/div&gt;
      &lt;input type="text" placeholder="Naam *" class="name form-control-name" name="name" required&gt;
      &lt;input type="email" placeholder="E-mail *" class="email form-control-email" name="email" required&gt;
      &lt;input style="width:100%;" type="text" placeholder="Telefoonnummer" class="phone form-control-phone" name="phone"&gt;
      &lt;textarea name="message" placeholder="Bericht *" class="message form-control-message" rows="8" cols="20" required&gt;&lt;/textarea&gt;
      &lt;input type="submit" name="submit" value="Verzenden"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>My ajax script:</p>
  
  <pre><code>$('#contact-form').submit(function(){
  
       var $form = $(this),
       $error = $form.find('.error-container'),
       action  = $form.attr('action');
  
       $error.slideUp(750, function() {
       $error.hide();
  
        var $name = $form.find('.form-control-name'),
          $email = $form.find('.form-control-email'),
          $phone = $form.find('.form-control-phone'),
          $message = $form.find('.form-control-message');
  
       $.post(action, {
               name: $name.val(),
               email: $email.val(),
               phone: $phone.val(),
               message: $message.val()
          },
          function(data){
               $error.html(data);
               $error.slideDown('slow');
  
               if (data.match('success') != null) {
                  $name.val('');
                  $email.val('');
                  $phone.val('');
                  $message.val('');
               }
          }
       );
  });
  </code></pre>
  
  <p>My PHP mail script:</p>
  
  <pre><code>&lt;?PHP
  require_once("../phpMailer/class.phpmailer.php");
  $isValid = true;
  if(isset($_POST['name']) &amp;&amp; isset($_POST['mail']) &amp;&amp; isset($_POST['phone']) &amp;&amp; isset($_POST['message']))
  {
      $name = $_POST['name'];
      $email = $_POST['email'];
      $phone = $_POST['phone'];
      $message = $_POST['message'];
      $subject = 'Er is een aanvraag op de website van website\'s Hairdesign';
      $mail = new PHPMailer;
      $mail-&gt;From = $email;
      $mail-&gt;FromName = $name;
      $mail-&gt;addAddress("my-email@outlook.com");
      $mail-&gt;isHTML(true);
      $mail-&gt;Subject = $subject;
      $texts = 'Er is een aanvraag op de website van website\'s Hairdesign&lt;br /&gt; &lt;br /&gt;
      &lt;b&gt;Naam:&lt;/b&gt; '.$name.'&lt;br /&gt;
      &lt;b&gt;E-mail adres:&lt;/b&gt; '.$email.'&lt;br /&gt;
      &lt;b&gt;Telefoonnummer:&lt;/b&gt; '.$phone.'&lt;br /&gt;
      &lt;b&gt;Bericht:&lt;/b&gt; '.$message.'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
      ';
  
      $handtekening = '
      &lt;table border="0" width="100%" cellspacing="0" cellpadding="0" style="font-family:calibri;color: #5C5C5C; font-size:10pt;line-height:22px;"&gt;
      &lt;tr&gt;
      &lt;td width="160" valign="top" style="font-family:calibri;padding-left:10px;padding-top:20px;"&gt;
      [contents]
      &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
      &lt;td width="160" valign="top" style="font-family:calibri;padding-left:10px;padding-top:20px;"&gt;
      Helpdesk&lt;br&gt;
      &lt;b&gt;website\'s Hairdesign&lt;/b&gt;&lt;br&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;/td&gt;
      &lt;/tr&gt;
      &lt;/table&gt;
      &lt;table height="120" border="0" width="100%" cellspacing="0" cellpadding="0" style="font-family:calibri;color: #5C5C5C; font-size:10pt;line-height:22px;"&gt;
      &lt;tr&gt;
      &lt;td width="250" valign="top" style="font-family:calibri;padding-left:10px;padding-top:20px;border-top: 1px #000000 dotted; border-bottom: 1px #000000 dotted;"&gt;
      E:&amp;nbsp;&amp;nbsp;
      &lt;a href="mailto:info@websiteshairdesign.nl" style="font-family:calibri;color: #5C5C5C; text-decoration: none; border-bottom: 1px #5C5C5C dotted;"&gt;info@websiteshairdesign.nl&lt;/a&gt;&lt;br&gt;
      T:&amp;nbsp;&amp;nbsp;
      &lt;a href="tel:+310181506451" style="font-family:calibri;color: #5C5C5C; text-decoration: none; border-bottom: 1px #5C5C5C dotted;"&gt;+31-(0)181-506451&lt;/a&gt;&lt;br&gt;
      W:&amp;nbsp;
      &lt;a href="http://websiteshairdesign.nl/" style="font-family:calibri;color: #5C5C5C; text-decoration: none; border-bottom: 1px #5C5C5C dotted;" target="_blank"&gt;www.podlogistics.nl&lt;/a&gt;&lt;br&gt;
      &lt;/td&gt;
      &lt;td align="right" style="font-family:calibri;padding-right:10px;padding-top:5px;border-top: 1px #000000 dotted; border-bottom: 1px #000000 dotted;"&gt;
      &lt;a href="http://websiteshairdesign.nl/" target="_blank" title="Ga naar de website"&gt;
      &lt;img src="http://websitemedia.nl/_extern/websites/img/logo-websites.png" alt="Ga naar de website" style="font-family:calibri;text-align:right;margin:0px;padding:10px 0 10px 0;" border="0" width="232"&gt;
      &lt;/a&gt;
      &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
      &lt;td colspan="2" style="font-family:calibri;color:#a3a3a3;font-size:11px;margin-top:6px;line-height:14px;"&gt;
      &lt;br&gt;Dit e-mailbericht is uitsluitend bestemd voor de geadresseerde. Als dit bericht niet voor u bestemd is, wordt u vriendelijk verzocht dit aan de afzender te melden. website\'s Hairdesign staat door de elektronische verzending van dit bericht niet in voor de juiste en volledige overbrenging van de inhoud, noch voor tijdige ontvangst daarvan. Voor informatie over website\'s Hairdesign raadpleegt u &lt;a href="http://websiteshairdesign.nl/" style="font-family:calibri;color: #5C5C5C; text-decoration: none; border-bottom: 1px #5C5C5C dotted;" target="_BLANK"&gt;website\'s Hairdesign&lt;/a&gt;.&lt;br&gt;&lt;br&gt;
      &lt;/td&gt;
      &lt;/tr&gt;
      &lt;/table&gt;';
  
  
      $contents = preg_replace('/\[contents]/',$texts, $handtekening);
      $mail-&gt;msgHTML($contents);
      $mail-&gt;AltBody = $texts;
      if(!$mail-&gt;send())
      {
          $isValid = false;
      }
  
      $mail = new PHPMailer;
      $mail-&gt;From = 'info@websiteshairdesign.nl';
      $mail-&gt;FromName = 'website\'s Hairdesign';
      $mail-&gt;addAddress($email);     
      $mail-&gt;isHTML(true);           
      $mail-&gt;Subject = 'Bedankt voor uw aanvraag bij website\'s Hairdesign';
      $texts = 'Geachte heer/mevrouw '.$naam.',&lt;br /&gt;&lt;br /&gt;
      Hartelijk dank voor uw aanvraag, wij zullen hier zo spoedig mogelijk op reageren.&lt;br /&gt;
      &lt;br&gt;
      Met vriendelijke groet,
      ';
      $contents = preg_replace('/\[contents]/',$texts, $handtekening);
      $mail-&gt;msgHTML($contents);
      $mail-&gt;AltBody = $texts;
      if(!$mail-&gt;send())
          $isValid = false;
      }
      if($isValid == true) {
          $result = 'Bedankt voor uw aanvraag! Wij nemen z.s.m. contact met u op.';
      } else {
          $result = 'Vul alle velden in!';
      }
  
      echo $result;
  </code></pre>