title: PHP Mail content doesn't display in Outlook
body: <p>So I've been messing around a little bit, and continued to inprove my PHP mails. Everything worked good, had my up and downs, and I finally achieved what I wanted to.</p>
  
  <p>This is what it looked like</p>
  
  <pre><code>&lt;?php 
  
  $headers .= "Content-Type: text/html; charset=UTF-8&gt;\n";
  $field_name = $_POST['cf_name'];
  $field_age = $_POST['Alter'];
  $field_ges = $_POST['Geschlecht'];
  $field_gt = $_POST['Gamertag'];
  $field_sona = $_POST['Socname'];
  $field_rol = $_POST['Rolle'];
  $overall_message = 'Vorname: ' . $field_name . '&lt;br&gt;
  Alter: ' . $field_age . '&lt;br&gt;
  Geschlecht: ' . $field_ges . '&lt;br&gt;
  Gamertag: ' . $field_gt . '&lt;br&gt;
  SocialClub-Name: ' . $field_sona . '&lt;br&gt;
  Rolle: ' . $field_rol;
  
  $subject = 'xRL Anmeldung - ' . $field_rol . ': ' . $field_name;
  $body_message = '&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;style&gt;
  
  html, body {
      margin: 0;
      padding: 0;
  }
  
  #Mailnap {
      text-align: center;
  }
  
  #Mailna {
      text-align: center;
  }
  
  .Hgrund {
      margin: 0;
      padding: 0;
      background-color: #DCDCDC;
  }
  
  table {
      height: 60px;
      width: 100%;
      border: 0px;
  }
  
  .Header {
      height: 60px;
      width: 100%;
      background-color: #1F1F1F;
      border: 0px;
  }
  
  .Header th {
      width: 83px;
      height: 60px;
      border: 0px;
      background-color: #DCDCDC;
  }
  
  .Header td {
      border: 0px;
      text-align: center;
  }
  
  .Header td a {
      fonz-size: 24px;
      text-align: center;
      color: #FFFFFF;
      border-bottom: 3px solid #FFFFFF;
      border-bottom-right-radius: 3px;
      border-bottom-left-radius: 3px;
      text-decoration: none;
  }
  
  .Header td a:hover {
      border-bottom: 3px solid #FF0000;
  }
  
  .Content {
      width: 98%;
      background-color: #696969;
      margin: 0 1% 0 1%;
      padding: 0;
  }
  
  .ContentICBG {
      width: 95%;
      padding: 0;
      margin: 10px auto 10px auto;
      background-color: #DCDCDC;
  }
  
  .Content h1 {
      width: 100%;
      margin: 0;
      padding: 0;
      font-size: 24px;
      text-align: center;
      background-color: #D5C4A1;
      color: #000000;
  }
  
  .ContentICBG p {
      padding: 10px 10px 10px 10px;
  }
  &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;p id="Mailnap"&gt;&lt;a href="https://xGamesHub.com/DE/MailFeedback" id="Mailna"&gt;Wird diese Mail nicht richtig angezeigt? Klicke bitte hier, und lasse es und wissen!&lt;/a&gt;&lt;/p&gt;
  
  &lt;div class="Hgrund"&gt;
  &lt;table style="background-color:#DCDCDC;border-bottom:3px solid #DCDCDC;"&gt;
   &lt;tr class="Header"&gt;
    &lt;th&gt;&lt;img src="https://xForigens.com/de-DE/Clans/GTAxRL/xRLN60.png"/&gt;&lt;/th&gt;
    &lt;td&gt;&lt;a href="https://xGamesHub.com/DE/" style=""&gt;STARTSEITE&lt;/a&gt;&lt;/td&gt;
    &lt;td&gt;&lt;a href="https://xGamesHub.com/DE/Gaming-News/" style=""&gt;GAMING NEWS&lt;/a&gt;&lt;/td&gt;
    &lt;td&gt;&lt;a href="https://xGamesHub.com/Forum" style=""&gt;Forum&lt;/a&gt;&lt;/td&gt;
    &lt;td&gt;&lt;a href="https://xForigens.com/de-DE/Clans/SEK1" style=""&gt;SEK1&lt;/a&gt;&lt;/td&gt;
    &lt;td&gt;&lt;a href="https://xForigens.com/de-DE/Clans/GTAxRL/" style=""&gt;xRL&lt;/a&gt;&lt;/td&gt;
   &lt;/tr&gt;
  &lt;/table&gt;
  
  &lt;div class="Content"&gt;
   &lt;h1&gt;' . $subject . '&lt;/h1&gt;
   &lt;div class="ContentICBG"&gt;
    &lt;p&gt;' . $overall_message . '&lt;/p&gt;
   &lt;/div&gt;
    &lt;h1&gt;Gesendet von: ' . $field_name . '&lt;/h1&gt;
  &lt;/div&gt;
  
  &lt;div style="margin:0;padding:0;background-color:#1F1F1F;border-top:3px solid #DCDCDC;height:30px;width:100%"&gt;
   &lt;p style="color:#FFFFFF;text-align:right;font-size:15px;margin:10px 10px 0 0;padding:0;"&gt;&lt;a style="color:#FFFFFF;text-decoration:none;" href="https://xForigens.com/de-DE/About"&gt;Über&lt;/a&gt; | &amp;copy;2017 xForigens&lt;/p&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;'; 
  
  $mail_to = 'Admin@xForigens.com';
  $mail_status = mail($mail_to, $subject, $body_message, $headers);
  
  if ($mail_status) { ?&gt;
    &lt;script language="javascript" type="text/javascript"&gt;
    alert('Danke, wir werden uns in den nächsten 7 Tagen melden.\n\nDamit Du mit am Projekt teilnehmen kannst, musst Du nun mit deinem angegebenen Gamertag, und deinem SocialClub-Name anfragen an Crew &amp; Club senden!')
    window.history.back()
    &lt;/script&gt;
  &lt;?php
  }
  
  else { ?&gt;
    &lt;script language="javascript" type="text/javascript"&gt;
    alert('Wenn die Mailfunktion ausfällt, versuche diese erneut zu senden, oder wende Dich an die Administration.')
    window.history.back();
    &lt;/script&gt;
  &lt;?php
  }
  
  ?&gt;
  </code></pre>
  
  <p>Everything was great. So I added a few more lines, because I would like my own Adress to be displayed, etc., and not cgi-mailer@kundenserver.de.</p>
  
  <p>Now it looked like this</p>
  
  <pre><code>&lt;?php 
  
  $headers .= "Content-Type: text/html; charset=UTF-8&gt;\n";
  $headers .= "From: xForigens | xRL&lt;NoReply@xForigens.com&gt;\n";
  $headers .= "Reply-To: MailFeedback&lt;Admin@xForigens.com&gt;\n";
  $headers .= "X-Mailer: PHP v".phpversion()."\n";
  $field_name = $_POST['cf_name'];
  $field_age = $_POST['Alter'];
  $field_ges = $_POST['Geschlecht'];
  $field_gt = $_POST['Gamertag'];
  $field_sona = $_POST['Socname'];
  $field_rol = $_POST['Rolle'];
  $overall_message = 'Vorname: ' . $field_name . '&lt;br&gt;
  Alter: ' . $field_age . '&lt;br&gt;
  Geschlecht: ' . $field_ges . '&lt;br&gt;
  Gamertag: ' . $field_gt . '&lt;br&gt;
  SocialClub-Name: ' . $field_sona . '&lt;br&gt;
  Rolle: ' . $field_rol;
  
  $subject = 'xRL Anmeldung - ' . $field_rol . ': ' . $field_name;
  $body_message = '&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;style&gt;
  
  html, body {
      margin: 0;
      padding: 0;
  }
  
  #Mailnap {
      text-align: center;
  }
  
  #Mailna {
      text-align: center;
  }
  
  .Hgrund {
      margin: 0;
      padding: 0;
      background-color: #DCDCDC;
  }
  
  table {
      height: 60px;
      width: 100%;
      border: 0px;
  }
  
  .Header {
      height: 60px;
      width: 100%;
      background-color: #1F1F1F;
      border: 0px;
  }
  
  .Header th {
      width: 83px;
      height: 60px;
      border: 0px;
      background-color: #DCDCDC;
  }
  
  .Header td {
      border: 0px;
      text-align: center;
  }
  
  .Header td a {
      fonz-size: 24px;
      text-align: center;
      color: #FFFFFF;
      border-bottom: 3px solid #FFFFFF;
      border-bottom-right-radius: 3px;
      border-bottom-left-radius: 3px;
      text-decoration: none;
  }
  
  .Header td a:hover {
      border-bottom: 3px solid #FF0000;
  }
  
  .Content {
      width: 98%;
      background-color: #696969;
      margin: 0 1% 0 1%;
      padding: 0;
  }
  
  .ContentICBG {
      width: 95%;
      padding: 0;
      margin: 10px auto 10px auto;
      background-color: #DCDCDC;
  }
  
  .Content h1 {
      width: 100%;
      margin: 0;
      padding: 0;
      font-size: 24px;
      text-align: center;
      background-color: #D5C4A1;
      color: #000000;
  }
  
  .ContentICBG p {
      padding: 10px 10px 10px 10px;
  }
  &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;p id="Mailnap"&gt;&lt;a href="https://xGamesHub.com/DE/MailFeedback" id="Mailna"&gt;Wird diese Mail nicht richtig angezeigt? Klicke bitte hier, und lasse es und wissen!&lt;/a&gt;&lt;/p&gt;
  
  &lt;div class="Hgrund"&gt;
  &lt;table style="background-color:#DCDCDC;border-bottom:3px solid #DCDCDC;"&gt;
   &lt;tr class="Header"&gt;
    &lt;th&gt;&lt;img src="https://xForigens.com/de-DE/Clans/GTAxRL/xRLN60.png"/&gt;&lt;/th&gt;
    &lt;td&gt;&lt;a href="https://xGamesHub.com/DE/" style=""&gt;STARTSEITE&lt;/a&gt;&lt;/td&gt;
    &lt;td&gt;&lt;a href="https://xGamesHub.com/DE/Gaming-News/" style=""&gt;GAMING NEWS&lt;/a&gt;&lt;/td&gt;
    &lt;td&gt;&lt;a href="https://xGamesHub.com/Forum" style=""&gt;Forum&lt;/a&gt;&lt;/td&gt;
    &lt;td&gt;&lt;a href="https://xForigens.com/de-DE/Clans/SEK1" style=""&gt;SEK1&lt;/a&gt;&lt;/td&gt;
    &lt;td&gt;&lt;a href="https://xForigens.com/de-DE/Clans/GTAxRL/" style=""&gt;xRL&lt;/a&gt;&lt;/td&gt;
   &lt;/tr&gt;
  &lt;/table&gt;
  
  &lt;div class="Content"&gt;
   &lt;h1&gt;' . $subject . '&lt;/h1&gt;
   &lt;div class="ContentICBG"&gt;
    &lt;p&gt;' . $overall_message . '&lt;/p&gt;
   &lt;/div&gt;
    &lt;h1&gt;Gesendet von: ' . $field_name . '&lt;/h1&gt;
  &lt;/div&gt;
  
  &lt;div style="margin:0;padding:0;background-color:#1F1F1F;border-top:3px solid #DCDCDC;height:30px;width:100%"&gt;
   &lt;p style="color:#FFFFFF;text-align:right;font-size:15px;margin:10px 10px 0 0;padding:0;"&gt;&lt;a style="color:#FFFFFF;text-decoration:none;" href="https://xForigens.com/de-DE/About"&gt;Über&lt;/a&gt; | &amp;copy;2017 xForigens&lt;/p&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;'; 
  
  $mail_to = 'Admin@xForigens.com';
  $mail_status = mail($mail_to, $subject, $body_message, $headers);
  
  if ($mail_status) { ?&gt;
    &lt;script language="javascript" type="text/javascript"&gt;
    alert('Danke, wir werden uns in den nächsten 7 Tagen melden.\n\nDamit Du mit am Projekt teilnehmen kannst, musst Du nun mit deinem angegebenen Gamertag, und deinem SocialClub-Name anfragen an Crew &amp; Club senden!')
    window.history.back()
    &lt;/script&gt;
  &lt;?php
  }
  
  else { ?&gt;
    &lt;script language="javascript" type="text/javascript"&gt;
    alert('Wenn die Mailfunktion ausfällt, versuche diese erneut zu senden, oder wende Dich an die Administration.')
    window.history.back();
    &lt;/script&gt;
  &lt;?php
  }
  
  ?&gt;
  </code></pre>
  
  <p>In Outlook.com it doesn't display any content anymore, accents (or whatever those were again) like ÄÖÜ/äöü don't properly display anymore, and different mailservices now ask me if I would like my header picture to be displayed. Before it did without beeing asked. Help please.</p>